<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_Nana的荔枝园_分类_ECMAScript</title><id>http://feed.cnblogs.com/blog/u/63191/category/219692/rss</id><updated>2012-05-28T07:03:57Z</updated><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/NanaLich/category/219692.html"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/63191/category/219692/rss"/><entry><id>http://www.cnblogs.com/NanaLich/archive/2011/06/16/regular-expression-that-validate-email-address-format.html</id><title type="text">两则用于验证 Email 地址的正则表达式</title><summary type="text">网络上所流传的大部分验证信箱格式的正则表达式往往会对一些实际上有效的信箱地址作出错误地判断，所以我参考 RFC 写了个比较完善的，可以用来对付几乎所有可能的信箱地址格式。</summary><published>2011-06-16T06:35:00Z</published><updated>2011-06-16T06:35:00Z</updated><author><name>Nana's Lich</name><uri>http://www.cnblogs.com/NanaLich/</uri></author><link rel="alternate" href="http://www.cnblogs.com/NanaLich/archive/2011/06/16/regular-expression-that-validate-email-address-format.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/NanaLich/archive/2011/06/16/regular-expression-that-validate-email-address-format.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/NanaLich/archive/2011/01/01/insert-flash-content-by-bbs-code.html</id><title type="text">【备忘】一段用于在论坛上插入Flash内容的JavaScript代码</title><summary type="text">这是我去年年初给我的一个朋友写的，不过后来因为种种原因没有利用上。时间相隔了近一年，也不记得会不会有什么细节问题了，先bia上再说。</summary><published>2011-01-01T05:42:00Z</published><updated>2011-01-01T05:42:00Z</updated><author><name>Nana's Lich</name><uri>http://www.cnblogs.com/NanaLich/</uri></author><link rel="alternate" href="http://www.cnblogs.com/NanaLich/archive/2011/01/01/insert-flash-content-by-bbs-code.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/NanaLich/archive/2011/01/01/insert-flash-content-by-bbs-code.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/NanaLich/archive/2010/12/27/1917776.html</id><title type="text">【备忘】按给定几率进行随机抽取</title><summary type="text">没啥技术含量的随机抽取</summary><published>2010-12-27T03:19:00Z</published><updated>2010-12-27T03:19:00Z</updated><author><name>Nana's Lich</name><uri>http://www.cnblogs.com/NanaLich/</uri></author><link rel="alternate" href="http://www.cnblogs.com/NanaLich/archive/2010/12/27/1917776.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/NanaLich/archive/2010/12/27/1917776.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/NanaLich/archive/2010/12/22/1913328.html</id><title type="text">【备忘】JavaScript 中的字符串转义等</title><summary type="text">var spcEsc = { '\x00': "x00", '\n': "n", '\r': "r", '\u8232': "u2028", '\u8233': "u2029"};var escStr = /[\x00\n\r"'\\\u2028\u2029]/g;//var escRX = /[-$^.[\]()?+*{}\\\/|\x00\r\n\u2028\u2029]/g;// $()*+ </summary><published>2010-12-21T22:08:00Z</published><updated>2010-12-21T22:08:00Z</updated><author><name>Nana's Lich</name><uri>http://www.cnblogs.com/NanaLich/</uri></author><link rel="alternate" href="http://www.cnblogs.com/NanaLich/archive/2010/12/22/1913328.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/NanaLich/archive/2010/12/22/1913328.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/NanaLich/archive/2010/12/22/1913326.html</id><title type="text">【备忘】用于过滤空白字符的几种常见的正则表达式pattern——在JavaScript中的表现形式</title><summary type="text">注意：列出的代码只是为了方便程序处理而采用了正则表达式的语法，但实际上并不是可以直接用于过滤的正则表达式。根据实际的使用情况，可能需要增加“g”等标志，或者进一步加工成更复杂的正则表达式。</summary><published>2010-12-21T21:25:00Z</published><updated>2010-12-21T21:25:00Z</updated><author><name>Nana's Lich</name><uri>http://www.cnblogs.com/NanaLich/</uri></author><link rel="alternate" href="http://www.cnblogs.com/NanaLich/archive/2010/12/22/1913326.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/NanaLich/archive/2010/12/22/1913326.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/NanaLich/archive/2010/09/13/a-module-provides-lambda-style-programming-ability-for-javascript-again.html</id><title type="text">[改进]还是那个让JavaScript具有（类似）Lambda表达式编程能力</title><summary type="text">前些天的伪Lambda模块选择的pattern不太友好，有可能会增加代码的阅读难度，所以这次改进之后重发。</summary><published>2010-09-13T05:44:00Z</published><updated>2010-09-13T05:44:00Z</updated><author><name>Nana's Lich</name><uri>http://www.cnblogs.com/NanaLich/</uri></author><link rel="alternate" href="http://www.cnblogs.com/NanaLich/archive/2010/09/13/a-module-provides-lambda-style-programming-ability-for-javascript-again.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/NanaLich/archive/2010/09/13/a-module-provides-lambda-style-programming-ability-for-javascript-again.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/NanaLich/archive/2010/09/12/javascript-coding-trick-by-nanalich.html</id><title type="text">JavaScript小技巧 2.5 则</title><summary type="text">在前一篇博文中我介绍了一种可以让JavaScript多少具备一点类似Lambda表达式的编程能力的办法，但是由于要兼容于JavaScript的语法检查，所以可以使用的场合也很有限。不过有些比较细心的朋友可能发现了，我在那个（伪）Lambda模块中使用了几个小技巧，现在我就把这几个小技巧介绍一下。</summary><published>2010-09-12T01:51:00Z</published><updated>2010-09-12T01:51:00Z</updated><author><name>Nana's Lich</name><uri>http://www.cnblogs.com/NanaLich/</uri></author><link rel="alternate" href="http://www.cnblogs.com/NanaLich/archive/2010/09/12/javascript-coding-trick-by-nanalich.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/NanaLich/archive/2010/09/12/javascript-coding-trick-by-nanalich.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/NanaLich/archive/2010/09/10/a-module-provides-lambda-style-programming-ability-for-javascript.html</id><title type="text">[乍看上去缺点比优点多的无聊创作]让JavaScript拥有（类似）Lambda表达式编程能力</title><summary type="text">在JavaScript中使用匿名函数没法避免使用“function”关键字，如果连续使用很多匿名函数的话这种重复劳动会非常影响心情。通过这个模块我把近似于C#中的Lambda表达式语法引入了JavaScript，或许能稍微改善一下这种状况吧。</summary><published>2010-09-10T01:56:00Z</published><updated>2010-09-10T01:56:00Z</updated><author><name>Nana's Lich</name><uri>http://www.cnblogs.com/NanaLich/</uri></author><link rel="alternate" href="http://www.cnblogs.com/NanaLich/archive/2010/09/10/a-module-provides-lambda-style-programming-ability-for-javascript.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/NanaLich/archive/2010/09/10/a-module-provides-lambda-style-programming-ability-for-javascript.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/NanaLich/archive/2010/09/08/something-you-might-not-know-about-regular-expression-in-javascript.html</id><title type="text">关于JavaScript中的正则表达式——你不一定知道，也可能用不到，但说不定哪天就会遭遇的几个事实【新增一个】</title><summary type="text">在复杂的脚本中使用正则表达式的时候所整理出来的，正则表达式在不同浏览器之间的差异。</summary><published>2010-09-08T12:35:00Z</published><updated>2010-09-08T12:35:00Z</updated><author><name>Nana's Lich</name><uri>http://www.cnblogs.com/NanaLich/</uri></author><link rel="alternate" href="http://www.cnblogs.com/NanaLich/archive/2010/09/08/something-you-might-not-know-about-regular-expression-in-javascript.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/NanaLich/archive/2010/09/08/something-you-might-not-know-about-regular-expression-in-javascript.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/NanaLich/archive/2010/09/07/yet-another-page-number-helper-tweaked-with-js-version.html</id><title type="text">某页码显示的helper——少量调整，另附js版</title><summary type="text">有一天我突然发现写程序来筛选显示哪些页码、怎么显示是件很抽搐的事情，就归纳出了这么个玩意。</summary><published>2010-09-07T07:28:00Z</published><updated>2010-09-07T07:28:00Z</updated><author><name>Nana's Lich</name><uri>http://www.cnblogs.com/NanaLich/</uri></author><link rel="alternate" href="http://www.cnblogs.com/NanaLich/archive/2010/09/07/yet-another-page-number-helper-tweaked-with-js-version.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/NanaLich/archive/2010/09/07/yet-another-page-number-helper-tweaked-with-js-version.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/NanaLich/archive/2010/08/29/ecmascript-de-facto-standard-the-string-line-breaking-connector.html</id><title type="text">De facto standard——世界上不可思议的事实标准</title><summary type="text">一般浏览器的JavaScript支持中总会有一些在ECMAScript中并没有定义，甚至是不该使用的特性，这其中有一部分被几乎所有的浏览器支持的，就是所谓的的“事实上的标准”。简述“事实标准”之后，本文还介绍一个像这样的特性，不使用串联操作而直接把字符串拆在几行代码中书写，并且不引发语法错误。</summary><published>2010-08-28T21:34:00Z</published><updated>2010-08-28T21:34:00Z</updated><author><name>Nana's Lich</name><uri>http://www.cnblogs.com/NanaLich/</uri></author><link rel="alternate" href="http://www.cnblogs.com/NanaLich/archive/2010/08/29/ecmascript-de-facto-standard-the-string-line-breaking-connector.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/NanaLich/archive/2010/08/29/ecmascript-de-facto-standard-the-string-line-breaking-connector.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/NanaLich/archive/2010/08/25/urite-the-uber-write-solution-for-html.html</id><title type="text">【创作】document.write的替用方案，“&amp;#220;ber Write”</title><summary type="text">前几天我写文提到了很多浏览器中document.write存在一个小缺陷，我也说自己在做一个替用方案来解决这个问题。在经过几天断断续续的调试以后，“Über Write”终于可以放出来给大家看了。</summary><published>2010-08-25T11:23:00Z</published><updated>2010-08-25T11:23:00Z</updated><author><name>Nana's Lich</name><uri>http://www.cnblogs.com/NanaLich/</uri></author><link rel="alternate" href="http://www.cnblogs.com/NanaLich/archive/2010/08/25/urite-the-uber-write-solution-for-html.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/NanaLich/archive/2010/08/25/urite-the-uber-write-solution-for-html.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/NanaLich/archive/2010/08/25/ecmascript-operator-precedence.html</id><title type="text">按分类整理的ECMAScript运算符优先级表格</title><summary type="text">在前一天的博文中我提到了“!”（逻辑否）的优先级低于“()”（执行）。但是直到昨天为止，我都没法很清楚地确定其它运算符的优先级是怎么样的。注意到这个问题以后，我花了点时间，参考一些文档，按用法分类整理出了一个优先级表格，如下：我也做了一个英文版的表格，可以从这里找到。表格中运算符的优先级从上倒下由高变低，同一行中的各种运算符优先级相同，在表达式只由出...</summary><published>2010-08-25T01:27:00Z</published><updated>2010-08-25T01:27:00Z</updated><author><name>Nana's Lich</name><uri>http://www.cnblogs.com/NanaLich/</uri></author><link rel="alternate" href="http://www.cnblogs.com/NanaLich/archive/2010/08/25/ecmascript-operator-precedence.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/NanaLich/archive/2010/08/25/ecmascript-operator-precedence.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/NanaLich/archive/2010/08/24/ie9-the-2px-issue-resolved.html</id><title type="text">IE的2像素偏差问题终于“将要”成为历史了（附js微技巧一则）</title><summary type="text">众所周知，IE有一个经典的“差了2像素”的问题，现在在IE9的第四个平台预览中这个问题已经可以解决了！不过有一个前提是，你必须“IE9标准模式”打开网页才行，默认情况下如果一个网页的DTD是“&lt;!DOCTYPE html&gt;”，“IE9标准模式”就会启用。好吧，IE的“2像素&amp;rd...</summary><published>2010-08-24T07:24:00Z</published><updated>2010-08-24T07:24:00Z</updated><author><name>Nana's Lich</name><uri>http://www.cnblogs.com/NanaLich/</uri></author><link rel="alternate" href="http://www.cnblogs.com/NanaLich/archive/2010/08/24/ie9-the-2px-issue-resolved.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/NanaLich/archive/2010/08/24/ie9-the-2px-issue-resolved.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/NanaLich/archive/2010/08/24/why-ecmascript-5-but-not-4.html</id><title type="text">为什么ECMAScript 5不是ECMAScript 4</title><summary type="text">当ECMAScript 4被取消的时候，有很多人不理解，我也是。但是如今ECMAScript 5标准已经出炉有一段时间了，我们回过头来再看当时的情景，还是不是觉得难以接受呢？</summary><published>2010-08-24T02:56:00Z</published><updated>2010-08-24T02:56:00Z</updated><author><name>Nana's Lich</name><uri>http://www.cnblogs.com/NanaLich/</uri></author><link rel="alternate" href="http://www.cnblogs.com/NanaLich/archive/2010/08/24/why-ecmascript-5-but-not-4.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/NanaLich/archive/2010/08/24/why-ecmascript-5-but-not-4.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/NanaLich/archive/2010/08/22/document-write-problem.html</id><title type="text">在网页中使用document.write时遭遇的奇怪问题</title><summary type="text">document.write是我们已经用了十多年的方法，由于种种原因我们所知道的其它动态产生网页内容的DOM API都无法完全替代它。但这个方法本身也存在着一些惹人头疼的问题。</summary><published>2010-08-22T15:26:00Z</published><updated>2010-08-22T15:26:00Z</updated><author><name>Nana's Lich</name><uri>http://www.cnblogs.com/NanaLich/</uri></author><link rel="alternate" href="http://www.cnblogs.com/NanaLich/archive/2010/08/22/document-write-problem.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/NanaLich/archive/2010/08/22/document-write-problem.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/NanaLich/archive/2010/08/16/falldown-for-external-javascript.html</id><title type="text">【小技巧】从多个地方加载同一个JavaScript库，避免加载问题造成内容出错</title><summary type="text">在网页上用了很多脚本来实现特效或者RIA体验是好事啦——可是万一加载框架的时候出了问题，网页就没法看了。本文介绍了一些有助于解决这样的问题的小技巧。</summary><published>2010-08-16T00:19:00Z</published><updated>2010-08-16T00:19:00Z</updated><author><name>Nana's Lich</name><uri>http://www.cnblogs.com/NanaLich/</uri></author><link rel="alternate" href="http://www.cnblogs.com/NanaLich/archive/2010/08/16/falldown-for-external-javascript.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/NanaLich/archive/2010/08/16/falldown-for-external-javascript.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/NanaLich/archive/2010/08/06/ie9-platform-preview-4.html</id><title type="text">IE 9 平台预览第4版发布</title><summary type="text">不久前微软IE团队面向开发者发布了IE9的第四个平台预览版，在修正一些问题的同时还提高了Acid3测试的分数。或许，还有些不为人知的小改进？</summary><published>2010-08-06T05:32:00Z</published><updated>2010-08-06T05:32:00Z</updated><author><name>Nana's Lich</name><uri>http://www.cnblogs.com/NanaLich/</uri></author><link rel="alternate" href="http://www.cnblogs.com/NanaLich/archive/2010/08/06/ie9-platform-preview-4.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/NanaLich/archive/2010/08/06/ie9-platform-preview-4.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/NanaLich/archive/2010/08/01/javascript-limited-razor-processor.html</id><title type="text">Limited Razor，在JavaScript中使用Razor式的模板</title><summary type="text">和WebMatrix一起公布的Razor视图引擎着实让我震惊了一次（算上WebMatrix和IIS Express加起来一共震惊了三次）——震惊之余，我开始动脑筋了，能不能把这个东西用在JavaScript里面呢？</summary><published>2010-08-01T12:46:00Z</published><updated>2010-08-01T12:46:00Z</updated><author><name>Nana's Lich</name><uri>http://www.cnblogs.com/NanaLich/</uri></author><link rel="alternate" href="http://www.cnblogs.com/NanaLich/archive/2010/08/01/javascript-limited-razor-processor.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/NanaLich/archive/2010/08/01/javascript-limited-razor-processor.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/NanaLich/archive/2010/07/27/xenon-the-extensaible-json.html</id><title type="text">[小创造]“XENON”，我的JSON变种。</title><summary type="text">长期使用JSON以后发现有些时候用起来会有点不方便，所以我在RFC-4627的基础上创造了这个可以使用有限的函数调用的JSON变种。</summary><published>2010-07-26T19:27:00Z</published><updated>2010-07-26T19:27:00Z</updated><author><name>Nana's Lich</name><uri>http://www.cnblogs.com/NanaLich/</uri></author><link rel="alternate" href="http://www.cnblogs.com/NanaLich/archive/2010/07/27/xenon-the-extensaible-json.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/NanaLich/archive/2010/07/27/xenon-the-extensaible-json.html"/><content type="html"/></entry></feed>
