页面加载完成后如何执行JavaScript函数?
Use the onload像这样的事件:
onload
window.onload = function(){ // your code here....... };