10 2012 档案
摘要:最新参考为: document.getElementById('IframeFeaturedBonds').contentWindow.BindInqueryNameDropdown(result.data); 一、父窗口调用iframe子窗口方法 1、HTML语法:<iframe name="my
阅读全文
摘要:相信写js的,都知道window.onload吧,但是并不是每个人都知道DOMContentLoaded,其实即使你不知道,很有可能你也经常使用了这个东西。 一般情况下,DOMContentLoaded事件要在window.onload之前执行,当DOM树构建完成的时候就会执行 DOMContent
阅读全文
摘要:现在的Web项目总是离不开大量JavaScript,而JS文件的体积也越来越大,也越来越影响页面的感知性能(Perceived Performance)。因此,我们会对JS文件进行压缩,一方面是使用Gzip,而另一方面则是去除JS文件里的注释、空白,并且压缩局部变量长度等等。对于一些成熟的类库来说,
阅读全文
摘要: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);
阅读全文
摘要:要实现动态加载JS脚本有4种方法: 1、直接document.write <script language="javascript"> document.write("<script src='test.js'><\/script>"); </script> 2、动态改变已有script的src属性
阅读全文
摘要:/Files/chinasoft/Default.zip
阅读全文
摘要: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
阅读全文