摘要: json对象var json = {aa:true,bb:true};var json1 = {aa:'b',bb:{cc:true,dd:true}};1:js操作json对象/Files/chinasoft/Demo.zip for(var item in json){ alert(item); 阅读全文
posted @ 2012-10-15 17:52 China Soft 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 要实现动态加载JS脚本有4种方法: 1、直接document.write <script language="javascript"> document.write("<script src='test.js'><\/script>"); </script> 2、动态改变已有script的src属性 阅读全文
posted @ 2012-10-15 13:31 China Soft 阅读(138) 评论(0) 推荐(0) 编辑
摘要: /Files/chinasoft/Default.zip 阅读全文
posted @ 2012-10-12 18:20 China Soft 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 1、LINQ to XML类以下的代码演示了如何使用LINQ to XML来快速创建一个xml:隐藏行号复制代码?创建 XMLpublic static void CreateDocument(){ string path = @"d:\website"; XDocument xdoc = new XDocument(new XDeclaration("1.0", "utf-8", "yes"), new XElement("Root", "root")); xdoc.Sav 阅读全文
posted @ 2012-10-10 11:09 China Soft 阅读(212) 评论(0) 推荐(0) 编辑
摘要: iTextSharp is a library that allows you to generate PDF files on the fly. Report.NET is a powerful library that will help you to generate PDF document 阅读全文
posted @ 2012-09-26 14:43 China Soft 阅读(9236) 评论(2) 推荐(2) 编辑
摘要: 第a56爆大奖在线娱乐,是CSS HACK的方法 height:20px; /*For Firefox*/ *height:25px; /*For IE7 & IE6*/ _height:20px; /*For IE6*/ 注意顺序。 这样也属于CSS HACK,不过没有上面这样简洁。 #example { col 阅读全文
posted @ 2012-09-25 14:44 China Soft 阅读(127) 评论(0) 推荐(0) 编辑
摘要: <script language="javascript"> function p() { var self = this; self.m = "p"; var getName = function () { return self.m; } self.alert = function () { v 阅读全文
posted @ 2012-09-11 16:21 China Soft 阅读(284) 评论(0) 推荐(0) 编辑
摘要: function f1(){ this.m = "f1的m";}function f2(){ alert(this.m);}f2(); // 显示 undefinedvar of1 = new f1();f2.call(of1); // 显示 f1的mf2.apply(of1); // 显示 f1的 阅读全文
posted @ 2012-09-11 14:55 China Soft 阅读(140) 评论(0) 推荐(0) 编辑
摘要: This is as days pass by, by Stuart Langridge . Here I write about many things. In the past I wrote about other things but the past is past. I write co 阅读全文
posted @ 2012-09-10 17:58 China Soft 阅读(165) 评论(0) 推荐(0) 编辑
摘要: HTML:scrollLeft,scrollWidth,clientWidth,offsetWidth到底指的哪到哪的距离之完全详解scrollHeight: 获取对象的滚动高度。 scrollLeft:设置或获取位于对象左边界和窗口中目前可见内容的最左端之间的距离scrollTop:设置或获取位于 阅读全文
posted @ 2012-09-10 17:33 China Soft 阅读(132) 评论(0) 推荐(0) 编辑