摘要: 原文:http://axl234.iteye.com/blog/1179045Document.form.item 问题现有问题:现有代码中存在许多 document.formName.item("itemName") 这样的语句,不能在 firefox下运行。解决方法:改用 document.formName.elements["elementName"]。集合类对象问题现有问题:现有代码中许多集合类对象取用时使用 (),IE 能接受,firefox 不能。解决方法:改用 [] 作为下标运算。如:document.forms("formNam 阅读全文
posted @ 2013-02-20 11:22 小精灵YY 阅读(155) 评论(0) 推荐(0)
摘要: 原文:http://axl234.iteye.com/blog/1182300jquery each解析数组:var arr = [ "one", "two", "three", "four"]; $.each(arr, function(){ alert(this); }); //上面这个each输出的结果分别为:one,two,three,four var arr1 = [[1, 4, 3], [4, 6, 6], [7, 20, 9]] $.each(arr1, function(i, item){ aler 阅读全文
posted @ 2013-02-20 11:19 小精灵YY 阅读(470) 评论(0) 推荐(0)
摘要: 今天突然发现ie6浏览器动态写入图片时,图片路径是正确的,但就是不显示图片.图片html已经插入到页面中,但是图片没有显示,IE7,火狐等浏览器都正常,要右键-“显示图片”,图片才显示,很奇怪的。code如下:function insertImg(o,id){ var imageUrl= PIC_PATH; //图片前缀 if (id < 0) { return false; } $("#banks").css('display','none'); $("#imgBox").html('<img src 阅读全文
posted @ 2013-02-20 11:08 小精灵YY 阅读(497) 评论(0) 推荐(0)