摘要:
字符串-->json对象:JSON.parse() var str = '{"code":"A001","name":"张三"}'; JSON.parse(str); 结果: code: "A001" name: "张三" json对象-->字符串:JSON.stringify() var obj = {code:"A001",name:"张三"}; JSON.stringify(o... 阅读全文
摘要:
DataTable 转Json Json 转 DataTable 阅读全文
摘要:
$(function () { var currYear = (new Date()).getFullYear(); var opt={}; //opt.date = {preset : 'date'}; //opt.datetime = {preset : 'date'}; //opt.time = {preset : 'time'}; ... 阅读全文