摘要: 1.JS去掉字符串首尾空格符(利用正则表达式) //去掉首尾的空格符 function trim(vStr) { // 首 尾 return vStr.replace(/(^\s*)/g, "").replace(/(\s*$)/g, ""); }2.Json对象转换成字符串 var last=ob... 阅读全文
posted @ 2014-12-18 13:47 JasonGu0 阅读(110) 评论(0) 推荐(0)