.trim() in JavaScript not working in IE
来源:互联网 发布:人工神经网络算法 编辑:程序博客网 时间:2024/05/16 09:47
trim 方法 (String) (JavaScript)
从字符串中移除前导空格、尾随空格和行终止符。
IE8下,Javascript的String.trim()方法会报错,建议使用JQuery的$.trim()方法。
以下来自MSDN:
在以下文档模式中受支持:Internet Explorer 9 标准模式、Internet Explorer 10 标准模式和 Internet Explorer 11 标准模式。此外,也在应用商店应用(Windows 8 和 Windows Phone 8.1)中受支持。请参阅版本信息。
在以下文档模式中不受支持:Quirks、Internet Explorer 6 标准模式、Internet Explorer 7 标准模式、Internet Explorer 8 标准模式。
http://stackoverflow.com/questions/2308134/trim-in-javascript-not-working-in-ie
https://msdn.microsoft.com/library/ff679971(v=vs.94).aspx
0 0
- .trim() in JavaScript not working in IE
- $.ajax not working in chrome but is working in firefox and IE
- Working-with-files-in-javascript
- not working in mobile web forms!
- Default namespace not working in Dotnet API.
- udev rule not working in ubuntu 12.0
- Unwind Segue not working in iOS 8
- Why is .innerText not working in Firefox?
- Maven Dependency Search Not Working in Eclipse
- Ajax second postback not working in Sharepoint in UpdatePanel
- Parse Xml In Js Not Working In Xampp With Ie9
- Working With Stored JavaScript in MongoDB
- 检测 IE 版本 in Javascript
- HAX is not working and emulator runs in emulation mode
- Unwind Segue not working in iOS 8问题解决
- HAX is not working and emulator runs in emulation mode
- MouseLeftButtonDown event not working for Textbox in Silverlight
- HAX is not working and emulator runs in emulation mode
- Mac 切换sdk版本, mac 设置jdk 环境变量
- 回溯法--《算法入门经典》
- Play框架2.5.6教程——Play应用的剖析
- 稳定排序与非稳定排序
- 面试(一)
- .trim() in JavaScript not working in IE
- Zxing二维码-引用QRCode类库
- hive1.2启动报错jline
- 【分享】性能比肩美拍秒拍的Android视频录制编辑特效解决方案【2】
- 雷袭-----qq第三方登录,让你闪电进入app
- POST 请求的跨域实现
- 笔记 1 :HTML
- JSON解析 初识
- 7.22 O HDU-1166 敌兵布阵