摘要: 阅读全文
posted @ 2018-02-26 18:19 橙云生 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 1 1、删除前后空格 String.prototype.trim = function () { return this.replace(/(^[ | ])|([ | ]$)/g, ""); } 2 3 2、把 document.getElementById(id) 转换成 $("id") 4 5 function $(id) { return typeof (id) == 'st... 阅读全文
posted @ 2018-02-26 18:09 橙云生 阅读(142) 评论(0) 推荐(0) 编辑