js:
字符串的截取
var src="images/off_1.png";
alert(src.substring(7,10));
字符串增加
arr.unshift(target.toString());
arr.splice(i,0,target.toString());
arr.push(target.toString());
json
$.parseJSON(response)
var s = JSON.stringify(retValue);
var s = JSON.parse(retValue);
类型转换
praseInt()
parseFloat()
toString()
//截取
toFixed(7)
java:
scala:
python: