专注于互联网--专注于架构

最新标签
网站地图
文章索引
Rss订阅
实现代码如下: //去左空格; function ltrim(s) ...{ s.replace(/(^\s*)/g, ""); } //去右空格; function rtrim(s) ...{ s.replace(/(\s*$)/g, ""); } //去左右空格; function trim(s)...{ //s.replace(/(^\s*)|(\s*$)/g, &quo [阅读全文] [PDF]
<form _disibledevent= o.ff.value.substr(o.ff.value.lastIndexOf("\\")+1) if(/[ \u4e00-\u9fa5]/.test(str)) { alert("不得中文,空格") return false } } </script> [阅读全文] [PDF]
有人问我怎样用javascript移除下列代码: <a href="http://blog.csdn.net/sallay" id="link"> <br/><div id="div">this is a div</div> 我不假思索的回答: document.getElementById("link").removeNode(true) document.getElementById("div&q [阅读全文] [PDF]
1 共3条 分1页