2008年8月29日

JSON用法2

摘要: var TSubjects = { items: [{id:1, name:"法学理论", chl:26 },{id:2, name:"经济法", chl:26 },{id:3, name:"卷二", chl:26 },{id:4, name:"卷三", chl:26 },{id:5, name:"卷四", chl:26 },{id:6, name:"卷一", chl:26 },{id:7, name:"民法", chl:26 },{id:8, name: 阅读全文

posted @ 2008-08-29 16:13 老代哥哥 阅读(128) 评论(0) 推荐(0) 编辑

JSON用法

摘要: function readNews(newsIdx){ http.open("GET","readNews4Edit.aspx?ID="+newsIdx,false ); http.send(""); var data=http.responseText; if(data.charAt(0)=='1'&& data.charAt(1)==':'){ alert(data ); } else { /*"{typeId:0,author:/"/",chl:0,c 阅读全文

posted @ 2008-08-29 16:09 老代哥哥 阅读(446) 评论(0) 推荐(0) 编辑

部分JS

摘要: //注册 studyez命名空间var studyez=studyez ? studyez:{};//注册工具类命名空间studyez.tool=studyez.tool ? studyez.tool:{};//常用的工具类//注:本接口适合用提供工具类studyez.tool.helper=studyez.tool.helper ? studyez.tool.helper: { //注意:属性或是方法名之前不要加 this version: "1.0.0", $:function(id){ return document.getElementById(id); }, ad 阅读全文

posted @ 2008-08-29 16:07 老代哥哥 阅读(146) 评论(0) 推荐(0) 编辑

导航