<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_Nana的荔枝园_分类_Windows Script</title><id>http://feed.cnblogs.com/blog/u/63191/category/219697/rss</id><updated>2012-05-28T07:04:55Z</updated><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/NanaLich/category/219697.html"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/63191/category/219697/rss"/><entry><id>http://www.cnblogs.com/NanaLich/archive/2012/05/26/a-scriptlet-for-app-path.html</id><title type="text">一个简单的WSH Scriptlet</title><summary type="text">先强调一下，我这里把它称为“Scriptlet”只是因为和其字面意义比较近似，并不是指 Microsoft Windows 中的那种“脚本组件”。起因有些时候我会弄到一些免安装的实用工具，比方说 Sysinternals 套件中的工具就都属于这一种。但是虽然工具是免安装的，可实际用起来的时候找到工具的所在位置也挺麻烦的，所以我尝试过几种办法，有创建快捷方式、创建文件夹、设置 Path 环境变量等等，总地来说当这类五花八门的免安装工具越来越多的时候，我是会犯懒的，于是我就开始想有什么办法可以一劳永逸地解决这个问题。解决方案经过短时间的尝试以后，我最终写出了一个能有点帮助的 Scriptlet，语</summary><published>2012-05-26T12:59:00Z</published><updated>2012-05-26T12:59: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/2012/05/26/a-scriptlet-for-app-path.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/NanaLich/archive/2012/05/26/a-scriptlet-for-app-path.html"/><content type="html"/></entry><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/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/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/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><entry><id>http://www.cnblogs.com/NanaLich/archive/2010/05/20/javascript-inherit-make-instanceof-true.html</id><title type="text">一个JavaScript上的OOP编程技巧：继承</title><summary type="text">JavaScript中的OOP或许已经是老生常谈了，但是可能还是有人不知道在JavaScript中应该怎样正确地实现继承。本文通过一个简单的例子介绍时下最流行也最规范的继承——instanceof运算符会返回true噢！</summary><published>2010-05-19T21:32:00Z</published><updated>2010-05-19T21: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/05/20/javascript-inherit-make-instanceof-true.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/NanaLich/archive/2010/05/20/javascript-inherit-make-instanceof-true.html"/><content type="text">JavaScript中的OOP或许已经是老生常谈了，但是可能还是有人不知道在JavaScript中应该怎样正确地实现继承。本文通过一个简单的例子介绍时下最流行也最规范的继承——instanceof运算符会返回true噢！</content></entry><entry><id>http://www.cnblogs.com/NanaLich/archive/2009/12/23/jsmin-hta.html</id><title type="text">易用的HTA版JSMin（省略修饰语若干）</title><summary type="text">JSMin是一种比较安全的ECMAScript代码减肥工具，我们能不能让它变成“只要用鼠标点一下就可以了”这样的文件关联呢？在实现这一目的的过程中我也遇到了一些意想不到的问题。</summary><published>2009-12-22T23:00:00Z</published><updated>2009-12-22T23:00: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/2009/12/23/jsmin-hta.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/NanaLich/archive/2009/12/23/jsmin-hta.html"/><content type="text">JSMin是一种比较安全的ECMAScript代码减肥工具，我们能不能让它变成“只要用鼠标点一下就可以了”这样的文件关联呢？在实现这一目的的过程中我也遇到了一些意想不到的问题。</content></entry><entry><id>http://www.cnblogs.com/NanaLich/archive/2009/12/05/javascript-the-undefined-3.html</id><title type="text">怎样写出更好的JavaScript程序之undefined篇（下）</title><summary type="text">这个系列终于到了最后一篇了，在前两篇之中我介绍了undefined这个概念的常见使用办法、最方便有效的办法以及其它变种。而这一篇中将会解释在上一篇最后留下的“为什么这个系列中要用严格相等”；并比较各种变种、等价形态的优缺点，最后我还会介绍一些容易产生误解的细节。</summary><published>2009-12-05T03:21:00Z</published><updated>2009-12-05T03:21: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/2009/12/05/javascript-the-undefined-3.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/NanaLich/archive/2009/12/05/javascript-the-undefined-3.html"/><content type="text">这个系列终于到了最后一篇了，在前两篇之中我介绍了undefined这个概念的常见使用办法、最方便有效的办法以及其它变种。而这一篇中将会解释在上一篇最后留下的“为什么这个系列中要用严格相等”；并比较各种变种、等价形态的优缺点，最后我还会介绍一些容易产生误解的细节。</content></entry></feed>
