When the page is loaded we gave him set up some operations
① original page load event
<script>
window.onload=function(){
alert("第一种方式")
}
</script>
②Jquery page loaded event (must import jquery)
<script src="jquery-1.11.3.min.js"></script>
<script>
$(
function () {
alert("第二种方法");
}
);
</script>
This is the simplest two page load function