摘要:页面内置JS:[代码]放在页面内部:[代码]单独放到一个js文件,然后调用<script language="javascript" src="http://images.cnblogs.com/lm.js"></script><table height="168" cellspacing="0" cellpadding="0" width="802" align="...
阅读全文
摘要:下载地址: http://www.extjs.com/products/extjs/download.php 下载文件 ext-2.2.zip 必要的最小集合是这样: ext-all.js, adapter/ext/ext-base.js, build/locale/ext-lang-zh_CN.js 整个resources目录。 ext-all.js,adapter/ext/ext-base.j...
阅读全文
摘要:jQuery设定:1,简化: jQuery()=>$(); $(document).ready()=>$();1.$选择器 a,按照id选择:$('#id1'); $("[id=user.name]") //id="user.name" id中有符合。 $("#user\\.name") b,按照html标签选择:$("a"); 选择子元素:$("ul ...
阅读全文
摘要:Js中引用CSS:<javascript> @input:url(a.css);s</javascript>
阅读全文
摘要:1,对象操作语句: 1,For……in语句: Function fun1(Object) { for(var prop in Object) { document.write(Object[prop]); } } 2,with语句: with Object{ }所有with后面花括号内都...
阅读全文
摘要:1,弹出信息框: alert("Hello,World!"); prompt("2,声明变量: var a=1; //声明int类型 var b=1.2 //声明Double类型 var arr1=new Array(); //声明数组,访问数组元素:arr1[0]=1;arr1[1]=2; funcation fun1() //声明函数,调用函数方法...
阅读全文