$.plusReady(function () { }); 里面的方法不执行; plusReady仅在5+ App或流应用中会触发 plusReady 参考网址: http://ask.dcloud.net.cn/question/1162 http://ask.dcloud.net.cn/ques Read More
posted @ 2016-04-27 18:14 画梦笙箫 Views(216) Comments(0) Diggs(0)
去除字符串左右两端的空格,在vbscript里 可 用 trim、ltrim 或 rtrim,但 js 却没有这 3个 内置方法,需 手工编写。下面的实现方法 用到 正则表达式,效率不错, 把 三个方法 加入 String对象 的 内置方法中去。 写成类的方法 :( str.trim(); ) 1 Read More
posted @ 2016-04-27 17:58 画梦笙箫 Views(427) Comments(0) Diggs(0)