![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
javascript
findu_at
这个作者很懒,什么都没留下…
展开
-
XML2String 和 String2XML
很多时候要用到xml和string 相互装换 xml2string[code="js"] string = (new XMLSerializer()).serializeToString(xmlobject); alert(string);[/code]String2Xml[code="js"] this.stringToXml = function...2009-10-28 11:00:59 · 348 阅读 · 0 评论 -
比较好的jquery验证框架
今天无意中发现一个比较好的jquery验证框架,这个框架类似于javaeye的验证方式,规则都写在class里,不过错误提示都在表单元素的旁边,效果不错,推荐给大家, 项目介绍地址:http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/...原创 2009-12-19 01:29:59 · 79 阅读 · 0 评论 -
Ext.apply 学习
一: ext.apply用来把参数拷贝到对象中,先看ext.apply源代码: Ext.apply = function(o, c, defaults){ // no "this" reference for friendly out of scope calls if(defaults){ Ext.apply(o, defaults); }...2010-04-02 10:27:09 · 110 阅读 · 0 评论 -
让普通的input=text弹出DatePicker
只要设置好id就行了,其他参数配置默认Ext.DatePicker html 如下:<input id='dateSign' type="text" size="10"> js如下: /** 谢忠持 扩张插件 支持普通input=text显示日期 **/Ext.ux.DatePicker = Ext.extend(Ext.DatePicker, { ...2010-04-27 19:19:17 · 194 阅读 · 0 评论 -
通过ajax抓去的js,如果要运行,需要在<script>中加上 defer
最基本的方法就是需要让浏览器可以同时解析<div>标签中的js。如果单适用IE浏览器,最简单的方式就是在<div>中的<script>标签中添加属性defer,它可以通知IE该脚本需要异步解析。...2010-04-29 13:42:04 · 111 阅读 · 0 评论