更新时间:2023-09-22 23:36:40
<script type="text/javascript"> function init() { // Put your code here } window.onload = init; </script>
或者,如果您使用的是jQuery:
Or, if you are using jQuery:
$(function() { // Your code here });
javascript - <script type="text/x-tmpl">这是什么类型,附代码
替代< body onload =" init();">
替代< a href ="#">当锚标签只触发一个jQuery动作而不重定向用户?