<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_♨  NewSea#'s Sky_分类_Web_UI</title><id>http://feed.cnblogs.com/blog/u/21750/category/71821/rss</id><updated>2012-06-04T23:38:05Z</updated><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/newsea/category/71821.html"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/21750/category/71821/rss"/><entry><id>http://www.cnblogs.com/newsea/archive/2012/05/05/2485413.html</id><title type="text">Js 内存泄露追踪</title><summary type="text">环境：windows2008R2 x64 , Ie9 , sIEve.背景：客户端页面刷新内存一直涨。有严重内存泄露。设置 sIEve的IE兼容版本：http://msdn.microsoft.com/en-us/library/ee330730(v=vs.85).aspx， AppName写 sIeve的可执行文件名。追踪了两天两夜。网上的方法，试了个遍，用 sIEve 都测试有很多泄露，第一个 27 个， 第二次 2387 个，以后以 2360 个递增， 2360 是所有元素都泄露，包括 script,meta,body,html,div,span,input,img.....把引用的j.</summary><published>2012-05-05T15:26:00Z</published><updated>2012-05-05T15:26:00Z</updated><author><name>NewSea.</name><uri>http://www.cnblogs.com/newsea/</uri></author><link rel="alternate" href="http://www.cnblogs.com/newsea/archive/2012/05/05/2485413.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/newsea/archive/2012/05/05/2485413.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/newsea/archive/2012/04/17/2454640.html</id><title type="text">Js 定义对象的方法</title><summary type="text">原文：http://yiminghe.iteye.com/blog/696296里面的示例代码 有误。应该如下：var lost = { loc : "Island", location : function () { return this.loc; }, location :function (val) { this.loc = val; } }; lost.location = "Another island";另外， IE8下Object.defineProperty 定义到 String.prototype 上是报错的。兼容一下：jv.defi</summary><published>2012-04-17T15:51:00Z</published><updated>2012-04-17T15:51:00Z</updated><author><name>NewSea.</name><uri>http://www.cnblogs.com/newsea/</uri></author><link rel="alternate" href="http://www.cnblogs.com/newsea/archive/2012/04/17/2454640.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/newsea/archive/2012/04/17/2454640.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/newsea/archive/2012/04/05/2433524.html</id><title type="text">IE8下报的找不到 jQuery 方法的排查。</title><summary type="text">IE9，FF，Chrome 都可以，IE8下报，找不到 datepicker 。datepick 是在 jquery.ui 网站上打包下载的。查看js的编码格式，发现是 GB2312 ， 晕。CSS 编码格式也是 GB2312 。jQuery.ui 的一群笨蛋， 做出来一堆垃圾 。改为 UTF8 - 65001 还是不行。报错对象在： 信息：“缺少标识符 字符串或数字”if ( col.class ) { }这一句上。开始不知道是为什么，逐级删除代码发现， class 是 IE8 的关键字，不能直接使用。改为 cssorif( col["class"] ) {}</summary><published>2012-04-05T10:10:00Z</published><updated>2012-04-05T10:10:00Z</updated><author><name>NewSea.</name><uri>http://www.cnblogs.com/newsea/</uri></author><link rel="alternate" href="http://www.cnblogs.com/newsea/archive/2012/04/05/2433524.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/newsea/archive/2012/04/05/2433524.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/newsea/archive/2012/03/19/2406485.html</id><title type="text">Js 事件多次被触发的解决方案.</title><summary type="text">Js 中的有些事件: 如 onscroll , onresize , 会被多次触发,而且,不同浏览器之前触发次数可能不一致. 这个问题很烦人.决定做一个方案出来解决所有的问题.其实关于界面上的问题,是允许一点点时间延迟的. 比如说 500 ms ,而多次触发的事件,可以忽略时间差的. 这是基础.先上代码 var lastTimer; $(window).scroll(function (e) { if (lastTimer) lastTimer.stop(); lastTimer = $.t...</summary><published>2012-03-19T10:19:00Z</published><updated>2012-03-19T10:19:00Z</updated><author><name>NewSea.</name><uri>http://www.cnblogs.com/newsea/</uri></author><link rel="alternate" href="http://www.cnblogs.com/newsea/archive/2012/03/19/2406485.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/newsea/archive/2012/03/19/2406485.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/newsea/archive/2012/01/04/2312358.html</id><title type="text">jQuery Find速度很慢的调试.</title><summary type="text">最近发现一个页面速度很慢,IE8 下报脚本运行时间太长,是否要停止的警告. 定位到$(d).find(":text,textarea,:hidden,:password,:radio:checked") .在其它浏览器里没有问题, 只有 IE8 .继续查找,发现它会执行如下代码.在 jQuery 上执行 : sortOrder 函数 . // Otherwise they're somewhere else in the tree so we need // to build up a full list of the parentNodes for compari</summary><published>2012-01-04T10:44:00Z</published><updated>2012-01-04T10:44:00Z</updated><author><name>NewSea.</name><uri>http://www.cnblogs.com/newsea/</uri></author><link rel="alternate" href="http://www.cnblogs.com/newsea/archive/2012/01/04/2312358.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/newsea/archive/2012/01/04/2312358.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/newsea/archive/2011/08/01/2123802.html</id><title type="text">[转]解决IE/Mozilla/Webkit/Opera兼容问题的葵花宝典：CSS Bug Table</title><summary type="text">我们通常要做的就是让页面在各系统A-Grade浏览器，甚至网站浏览份额0.1%以上的浏览器上良好显示。当然，还有性能问题。不过，今天要说的是样式的兼容问题。在IE/Mozilla/Webkit/Opera四分天下的今天，IE6-9/Mozilla（Gecko）系列/Chrome/Safari/Operaetc. 这些浏览器的兼容，无不让前端们头痛。而在这之中，最让人头痛的当数IE，特别是IE6。搞定了IE6，基本也就能称霸半个江山了。搞定了IE，也相当于占领了7、80%的领地。你想做一个统治页面兼容的主么？反正我是想的。以下将一些值得去看的Bug整理成一个列表，基于Alipay前端伟大的分享精</summary><published>2011-08-01T05:57:00Z</published><updated>2011-08-01T05:57:00Z</updated><author><name>NewSea.</name><uri>http://www.cnblogs.com/newsea/</uri></author><link rel="alternate" href="http://www.cnblogs.com/newsea/archive/2011/08/01/2123802.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/newsea/archive/2011/08/01/2123802.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/newsea/archive/2011/07/04/2097018.html</id><title type="text">精选jQuery 插件。</title><summary type="text">文件上传： 1. http://valums.com/files/2009/ajax-upload/demo-jquery.htm 它用了一种很巧妙的机制， 就是 鼠标移动上去之后， 点击的总是隐藏的 file 控件。 2. http://valums.com/ajax-upload/ 它则利用了，将 file 控件最大化，隐藏在某一Div 上面。 第一种是异曲同工。3.http://www.cnblogs.com/kudy/archive/2012/03/31/2427249.html 园子里相当不错的插件。窗体：1. http://www.soyos.net/tl_files/demo.</summary><published>2011-07-03T17:13:00Z</published><updated>2011-07-03T17:13:00Z</updated><author><name>NewSea.</name><uri>http://www.cnblogs.com/newsea/</uri></author><link rel="alternate" href="http://www.cnblogs.com/newsea/archive/2011/07/04/2097018.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/newsea/archive/2011/07/04/2097018.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/newsea/archive/2011/05/14/2046026.html</id><title type="text">[转］JavaScript 秘密花园</title><summary type="text">原文：http://bonsaiden.github.com/JavaScript-Garden/zh/简介JavaScript 秘密花园是一个不断更新，主要关心 JavaScript 一些古怪用法的文档。对于如何避免常见的错误，难以发现的问题，以及性能问题和不好的实践给出建议，初学者可以籍此深入了解 JavaScript 的语言特性。JavaScript 秘密花园不是用来教你 JavaScript。为了更好的理解这篇文章的内容，你需要事先学习 JavaScript 的基础知识。在 Mozilla 开发者网络中有一系列非常棒的 JavaScript 学习向导。译者注： 文中提到的 ES5 是 </summary><published>2011-05-13T18:04:00Z</published><updated>2011-05-13T18:04:00Z</updated><author><name>NewSea.</name><uri>http://www.cnblogs.com/newsea/</uri></author><link rel="alternate" href="http://www.cnblogs.com/newsea/archive/2011/05/14/2046026.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/newsea/archive/2011/05/14/2046026.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/newsea/archive/2011/05/13/2045414.html</id><title type="text">HTML document,  documentElement , body 各对象.</title><summary type="text">document // Html 的容器对象.document.documentElement //html 对象document.body // body 对象$(document.documentElement).find("body") ; // Body 对象.各个高度有各个高度的含义. document &gt; document.documentElement &gt; body . 但是 document.height 却很小. 试验: &lt;div style="margin: 1px 2px 3px 4px; padding: 5px 6px </summary><published>2011-05-13T05:12:00Z</published><updated>2011-05-13T05:12:00Z</updated><author><name>NewSea.</name><uri>http://www.cnblogs.com/newsea/</uri></author><link rel="alternate" href="http://www.cnblogs.com/newsea/archive/2011/05/13/2045414.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/newsea/archive/2011/05/13/2045414.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/newsea/archive/2011/05/12/2044250.html</id><title type="text">借助 FireBug 进行轻量级代码自动生成。</title><summary type="text">前段时间遇到 存储过程传值时， 把 “” 变成 “ ” 在 Sql server 里 借助 正则表达式，比较麻烦。 写程序同样。借助 FireBug 。 $(["@UserId","@Company","@Project","@Building","@Room","@Reporter","@Phone","@PageIndex","@PageSize","@OrderField","@O</summary><published>2011-05-12T05:09:00Z</published><updated>2011-05-12T05:09:00Z</updated><author><name>NewSea.</name><uri>http://www.cnblogs.com/newsea/</uri></author><link rel="alternate" href="http://www.cnblogs.com/newsea/archive/2011/05/12/2044250.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/newsea/archive/2011/05/12/2044250.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/newsea/archive/2011/04/07/2007384.html</id><title type="text">MVC中，Ajax Post 数组的实现方案</title><summary type="text">1. HTMLPost 做Post的情况如果HTML 脚本是这样的话:&lt;form action="P.aspx"&gt;&lt;input type="checkbox" name="v" value="v1"/&gt;&lt;input type="checkbox" name="v" value="v2"/&gt;&lt;/form&gt;当Post 的时候, Model 可以如下定义进行接收:public User{ publicstring[</summary><published>2011-04-06T18:05:00Z</published><updated>2011-04-06T18:05:00Z</updated><author><name>NewSea.</name><uri>http://www.cnblogs.com/newsea/</uri></author><link rel="alternate" href="http://www.cnblogs.com/newsea/archive/2011/04/07/2007384.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/newsea/archive/2011/04/07/2007384.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/newsea/archive/2011/04/04/2005500.html</id><title type="text">左右互博之精简代码</title><summary type="text">很普通的代码方式如下:(javascript)var url = "~/Admin/User/Update" + ( jv.page().uid ? "/" + jv.page().uid : "") + ".aspx" ;今天查看代码,想到为了简化写法,让 jv.page().uid 出现一次的解决方案. 1. 当 jv.page.uid 不以 "." 开头 且不以 "/" 结尾 且 中间不存在 "/." 的时候:url = "~/Admin/</summary><published>2011-04-04T15:36:00Z</published><updated>2011-04-04T15:36:00Z</updated><author><name>NewSea.</name><uri>http://www.cnblogs.com/newsea/</uri></author><link rel="alternate" href="http://www.cnblogs.com/newsea/archive/2011/04/04/2005500.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/newsea/archive/2011/04/04/2005500.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/newsea/archive/2011/03/06/1971978.html</id><title type="text">转 让eval()全局作用域执行的方法深入研究(javascript)</title><summary type="text">原文：http://blog.csdn.net/cuixiping/archive/2009/11/17/4823119.aspxeval(str)用来传入一个字符串动态执行一段脚本，这个方法非常有用。当直接用eval()时，作用域为当前作用域，有时候我们需要让它在全局作用域范围内执行，比如ajax返回的脚本字符串，然而浏览器对eval的差异可能使事情刚开始并不是那么顺利，本文通过在7种浏览器(IE, Firefox,Chrome, Safari, Opera）环境中测试，并提出三种解决方案，使这个问题比较完美的解决。看这一段javascript代码：function xx(){ var x=</summary><published>2011-03-05T17:19:00Z</published><updated>2011-03-05T17:19:00Z</updated><author><name>NewSea.</name><uri>http://www.cnblogs.com/newsea/</uri></author><link rel="alternate" href="http://www.cnblogs.com/newsea/archive/2011/03/06/1971978.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/newsea/archive/2011/03/06/1971978.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/newsea/archive/2011/03/03/1970300.html</id><title type="text">[转]__defineGetter__ 和 __defineSetter__</title><summary type="text">原文： http://www.javaeye.com/topic/40946IE 不支持 __defineGetter__ 和 __defineSetter__Getter是一种获取一个属性的值的方法，Setter是一种设置一个属性的值的方法。可以为任何预定义的核心对象或用户自定义对象定义getter和setter方法，从而为现有的对象添加新的属性。有两种方法来定义Getter或Setter方法：在对象初始化时定义在对象定义后通过Object的__defineGetter__、__defineSetter__方法来追加定义在使用对象初始化过程来定义Getter和Setter方法时唯一要做的事情</summary><published>2011-03-03T13:11:00Z</published><updated>2011-03-03T13:11:00Z</updated><author><name>NewSea.</name><uri>http://www.cnblogs.com/newsea/</uri></author><link rel="alternate" href="http://www.cnblogs.com/newsea/archive/2011/03/03/1970300.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/newsea/archive/2011/03/03/1970300.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/newsea/archive/2011/02/25/1964662.html</id><title type="text">FF,IE8 正确, IE7 报错, 加载不上JS文件 的错误.</title><summary type="text">FF,IE8 正确, IE7 报错, 加载不上JS文件 的错误. 在 IE7 消息栏中提示: "缺少标识符、字符串或数字"但错误定位却在调用该文件函数的其它地方.后来调试发现,对于如下语法, IE7 是解释不了的.var offset = { top: 10 , left : 10 , } ;而对于 ie8 , ff 没有问题. IE7 , IE8 ,还是很不稳定, 调试巨慢无比.</summary><published>2011-02-25T03:38:00Z</published><updated>2011-02-25T03:38:00Z</updated><author><name>NewSea.</name><uri>http://www.cnblogs.com/newsea/</uri></author><link rel="alternate" href="http://www.cnblogs.com/newsea/archive/2011/02/25/1964662.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/newsea/archive/2011/02/25/1964662.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/newsea/archive/2011/02/15/1955255.html</id><title type="text">使用 JavaScript File API 实现文件上传</title><summary type="text">http://www.ibm.com/developerworks/cn/web/1101_hanbf_fileupload/使用 JavaScript File API 实现文件上传韩 冰峰, 软件工程师, IBM韩冰峰，现在 IBM 中国软件开发实验室 Lotus 开发中心工作，目前从事 Lotus Connector 的开发。热衷于 Web 2.0 相关技术的研究和实现。张 顺, 软件工程师, IBM张顺，现在 IBM 中国软件开发实验室 Lotus 开发中心工作，目前从事 Lotus Quickr 的开发定制以及客户支持工作。对 Web 服务，Web2.0 相关技术有浓厚的兴趣。莫 映</summary><published>2011-02-15T07:18:00Z</published><updated>2011-02-15T07:18:00Z</updated><author><name>NewSea.</name><uri>http://www.cnblogs.com/newsea/</uri></author><link rel="alternate" href="http://www.cnblogs.com/newsea/archive/2011/02/15/1955255.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/newsea/archive/2011/02/15/1955255.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/newsea/archive/2011/01/19/1939719.html</id><title type="text">jQuery 面试题.-Udi</title><summary type="text">1.页面上有一个按钮,点击后,在按钮后面插入一个Label . 内容显示"OK";已有元素结构:&lt;input id="btnOK" type="button" /&gt;要求事件写在页面元素加载完成之后,函数动态绑定到btnOK 元素.$(function(){ $("#btnOK").click(function(e){ $(this).after("&lt;label&gt;OK&lt;/label&gt;") ; }) ;});或者$(document).ready(function</summary><published>2011-01-19T15:38:00Z</published><updated>2011-01-19T15:38:00Z</updated><author><name>NewSea.</name><uri>http://www.cnblogs.com/newsea/</uri></author><link rel="alternate" href="http://www.cnblogs.com/newsea/archive/2011/01/19/1939719.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/newsea/archive/2011/01/19/1939719.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/newsea/archive/2010/12/25/1916966.html</id><title type="text">jQuery 中 :eq 选择器性能低下.</title><summary type="text">我在 flexigrid 中扩展了树型展示功能.发现 :eq 选择器效率非常低下, 不是 .eq function.注意避免.</summary><published>2010-12-25T14:27:00Z</published><updated>2010-12-25T14:27:00Z</updated><author><name>NewSea.</name><uri>http://www.cnblogs.com/newsea/</uri></author><link rel="alternate" href="http://www.cnblogs.com/newsea/archive/2010/12/25/1916966.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/newsea/archive/2010/12/25/1916966.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/newsea/archive/2010/11/26/1888999.html</id><title type="text">IIS7的集成模式和经典模式(转)</title><summary type="text">IIS7.0中的Web应用程序有两种配置模式：经典模式和集成模式。经典模式是为了与之前的版本兼容，使用ISAPI扩展来调用ASP.NET运行库，原先运行于IIS6.0下的Web应用程序迁移到IIS7.0中只要将应用程序配置成经典模式，代码基本不用修改就可以正常运行。集成模式是一种统一的请求处理管道，它将ASP.NET请求管道与IIS核心管道组合在一起，这种模式能够提供更好的性能，能够实现配置和管理...</summary><published>2010-11-26T09:17:00Z</published><updated>2010-11-26T09:17:00Z</updated><author><name>NewSea.</name><uri>http://www.cnblogs.com/newsea/</uri></author><link rel="alternate" href="http://www.cnblogs.com/newsea/archive/2010/11/26/1888999.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/newsea/archive/2010/11/26/1888999.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/newsea/archive/2010/11/18/1880580.html</id><title type="text">JQuery UI 调整笔记</title><summary type="text">生成的 CSS 里有一句: * html .ui-helper-clearfix { height:1%; }会导致在FireFox,IE 的内容页上的高度变化, 从而在弹出页面引用DatePicker时,会莫名其妙的变高一点点. 我想有些默认高度是0的隐藏元素是否也变成 1% 了.应该去除上述CSS .另外设置全局Js ,即在 Jquery.Ui.Customer.jsjQuery(functi...</summary><published>2010-11-18T03:37:00Z</published><updated>2010-11-18T03:37:00Z</updated><author><name>NewSea.</name><uri>http://www.cnblogs.com/newsea/</uri></author><link rel="alternate" href="http://www.cnblogs.com/newsea/archive/2010/11/18/1880580.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/newsea/archive/2010/11/18/1880580.html"/><content type="html"/></entry></feed>
