function GetPageScroll() { var x, y; if(window.pageYOffset) { // all except IE y = window.pageYOffset; x = window.pageXOffset; } else if(document.documentElement && document.documentElement.scrollTop) { // IE 6 Strict y = document.documentElement.scrollTop; x = document.documentElement.scrollLeft; …
2009-09-14 16:40 · WEB_JS_CSS · IE
递归删除文件目录: require 'pathname' dir=Pathname.new("/home/poole/") dir.rmtree #or require 'fileutils' FileUtils.rm_r("/home/poole")
2009-04-22 09:07 · Ruby