str要截取的字符 n截取个数 function jiequ(str,n) { var strArr = []; for (var i = 0, l = str.length; i < l / n; i++) { var a = str.slice(n * i, n * (i + 1)); strArr.push(a); } return strAr
去除html标签: function del_html_tags(str) { var words = ''; words = str.replace(/<[^>]+>/g,""); return words; } 去除空格: function Trim(str,is_global) { var result; result = str.replace(/(^\s+)|(\s+$)/g,""); if(is_global.toLowerCase()
创建测试表及数据 create table test(name varchar2(10)); insert into test values ('2-15');insert into test values ('2-33');insert into test values ('2-3');insert into test values ('12-8');insert into test values ('12-22');insert into test values ('12-3'); 执行 s