摘要: 看看RegistryKey的帮助就知道了,这个东西不复杂,比如: 1 加键 改值 Microsoft.Win32.RegistryKey Key = Microsoft.Win32.Registry.CurrentUser.CreateSubKey( @"Software\Microsoft\Internet Explorer\Main"); Key.SetValue( "Window Title" , value ); Key.Close(); 2 得键值 ... 阅读全文
posted @ 2013-03-14 16:56 microsoftzhcn 阅读(4152) 评论(0) 推荐(0) 编辑
摘要: 闭包的英文单词是closure,这是JavaScript中非常重要的一部分知识,因为使用闭包可以大大减少我们的代码量,使我们的代码看上去更加清晰等等,总之功能十分强大。闭包的含义:闭包说白了就是函数的嵌套,内层的函数可以使用外层函数的所有变量,即使外层函数已经执行完毕(这点涉及JavaScript作用域链)。 function fn(){ var str = 'hello'; setTimeout( function(){ alert(str); } //这是一个匿名函数 ... 阅读全文
posted @ 2013-03-14 15:48 microsoftzhcn 阅读(199) 评论(0) 推荐(0) 编辑
摘要: <script src="../js/seajs/dist/sea.js" type="text/javascript"></script> <script type="text/javascript" charset="utf-8" > //定义 define(function(require, exports) { return { msg:'hello world' } }); //调用 seajs.use('cons', functi... 阅读全文
posted @ 2013-03-14 09:59 microsoftzhcn 阅读(909) 评论(0) 推荐(0) 编辑