javascript
不带刺仙人球
这个作者很懒,什么都没留下…
展开
-
js设置30分钟后展示
Date.prototype.format = function(format){var o = {"M+" : this.getMonth()+1, //month"d+" : this.getDate(), //day"h+" : this.getHours(), //hour"m+" : this.getMinutes(), //minute"s+" : this.g原创 2017-09-05 12:12:47 · 1228 阅读 · 0 评论 -
js中json数据的读取
var data=[{"clothesID1":{"clothesID":1,"name":"上衣""remark":"上衣第一层"},"clothesID2":{"clothesID":2,"name":"下衣","remark":"下衣第一层"}}] //数据自行修正遍历data的所有属性//var clothesTypePros = [];for(var p in data){原创 2017-11-19 21:49:57 · 2907 阅读 · 0 评论 -
js对象转换
js eval可以执行js代码,以及可以把字符串转为对象。如字符串:[{ id:1, parentId:0, name:'上衣', open:true},{id:1001, parentId:1, name:'上衣一类'},{id:1002, parentId:1, name:'上衣二类'},{ id:2, parentId:0, name:'下衣', open:true},{id:1003,原创 2017-11-20 22:33:38 · 197 阅读 · 0 评论