滾動到底部
//滾動到底部
var h = $(document).height()-$(window).height();
$(document).scrollTop(h);
滾動到頂部
//滾動到頂部 也可解決ios調用鍵盤之後的空白問題
window.scroll(0, 0);
滾動到底部
//滾動到底部
var h = $(document).height()-$(window).height();
$(document).scrollTop(h);
滾動到頂部
//滾動到頂部 也可解決ios調用鍵盤之後的空白問題
window.scroll(0, 0);
shell腳本獲取腳本所在目錄 執行腳本的父目錄不一定是當前的工作目錄。 url=$(dirname $(readlink -f $0))