05 2020 档案
摘要:/*** 删除左右两端的空格*/function trim(str){ return str.replace(/(^\s*)|(\s*$)/g, ”);}/*** 删除左边的空格*/function ltrim(str){ return str.replace(/(^\s*)/g,”);}/***
阅读全文
摘要:for(var index=1;index<7;index++){ $scope["model_"+index] = index } //效果 = $scope.model_1 = 1 $scope.model_2 = 2 $scope.model_3 = 3 $scope.model_4 = 4
阅读全文
摘要:/*阻止冒泡*/ function preventBubble(event){ var e=arguments.callee.caller.arguments[0]||event; //若省略此句,下面的e改为event,IE运行可以,但是其他浏览器就不兼容 if (e && e.stopPropa
阅读全文
摘要:for ch in ImageUrl: if u'\u4e00' <= ch <= u'\u9fff': is_ch += 1 View Code
阅读全文