asp.net模板页实现类似jquery中document.ready
模板页先判断是否有方法DocumentReady,有的话就调用
1、模板页
<script type="text/javascript" language="javascript">
function DocumentLoad() {
if (typeof (DocumentReady) == "function") {
DocumentReady();
}
}
</script>
<body class="RecordBody" style="font-family:Arial" onload="DocumentLoad();">
<body>
2、内容页
DocumentReady();