05 2013 档案
one message on Deferred object on jquery
摘要:碰到一bug,调试一下记录一下过程:问题: js中通过jqeuery 的Deferred object 发送http 请求,其请求正确,但是每次请求没有返回,页面直接跳转。具体的:在写js文件中,有这么一段代码,发送一个http 请求:queryInconsistentTables= function(){ var dtd = $.Deferred(); ajax({ url: this.__sBaseUrl + 'query' type: 'GET', ...
阅读全文
Forward: X Forwarding with Putty on Windows
摘要:http://www.math.umn.edu/systems_guide/putty_xwin32.htmlX Forwarding with Putty on WindowsIntro to X ForwardingUnix machines have been able to run software on a remote machine and display the GUI locally for almost two decades. Linux and Mac OS X support X Forwarding with no extra software. Any termi
阅读全文
JS convertion from string to boolean
摘要:http://stackoverflow.com/questions/263965/how-can-i-convert-a-string-to-boolean-in-javascriptThe first answer from the answer list:You should probably be cautious about using these two methods for your specific needs:var myBool =Boolean("false");// == truevar myBool =!!"false";//
阅读全文