![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
javascript
sywjn
这个作者很懒,什么都没留下…
展开
-
JSON对象格式
var target = { "param1":[{"id":"1001","name":"hello1"},{"id":"1002","name":"world1"}], "param2":[{"id":"1003","name":"hello2"},{"id":"1004","name":"world2"}], "param3":[{"id":"1005","name":"hello3"原创 2011-12-06 02:11:02 · 229 阅读 · 0 评论 -
模拟 List 的 add 和 remove
var idItems = new Array();function AddItem(item){ var value = document.getElementById(item); for(var i = 0; i < idItems.length; i++){ if(idItems[i] == value){ return; } } idIte原创 2011-04-21 17:04:00 · 216 阅读 · 0 评论