// var str1 = str.replace(/[\'\"\\\/\b\f\n\r\t]/g, '');// 去掉轉義字符
// var str2= str.replace(/[\-\_\,\!\|\~\`\(\)\#\$\%\^\&\*\{\}\:\;\"\L\<\>\?]/g, '');// 去掉特殊字符
// return str2; json
var containSpecial = RegExp(/[(\ )(\~)(\!)(\@)(\#)(\$)(\%)(\^)(\&)(\*)(\()(\))(\-)(\_)(\+)(\=)(\[)(\])(\{)(\})(\|)(\\)(\;)(\:)(\')(\")(\,)(\.)(\/)(\<)(\>)(\?)(\)]+/);
return ( containSpecial.test(s) ); 判斷是否含有函數
var filterRule= /[^0-9a-zA-Z_]/g;
var judge= filterRule.test(str); //判斷傳進來的數據是否含有特殊字符。test函數返回匹配結對象
var rows=JSON.stringify(rows);////將json對象轉換成json對符串
var rows=JSON.parse(rows);//將json字符串轉換成json對象 ci