当前位置:网站首页>jsp页面初始加载方式
jsp页面初始加载方式
2022-06-11 16:30:00 【peach桃】
在写页面的时候碰到了进入页面就自动加载的需要,特意整理了一下页面初始化加载的方式,如下:
(1)//页面初始化加载
$(document).ready(function(){
alert("第一种方法。");
}
(2)//页面初始化加载
$(function(){
alert("第二种方法。");
});
(3)//页面初始化加载
jQuery(function($) {
alert("第三种方法。");
});
(4)//页面初始化加载
window.οnlοad=function(){
alert("第四种方法。");
}
(5)//页面初始化加载
在body里面写onload
边栏推荐
- R1 Quick Open Pressure Vessel Operation test Library and Simulation Test in 2022
- web网页设计实例作业 ——河南美食介绍(4页) web期末作业设计网页_甜品美食大学生网页设计作业成品
- Time processing logic for the last 7 days, the last 10 days, and the last 90 days
- Analysis of time complexity and space complexity
- Pyqt5 enables the qplaintextedit control to support line number display
- CLP Jinxin helps Rizhao bank put into operation its new financial ecological network
- 2022 high altitude installation, maintenance and demolition test simulation 100 questions and online simulation test
- 什么是rs邮票纸?
- 2022年高处安装、维护、拆除考试模拟100题及在线模拟考试
- [ISITDTU 2019]EasyPHP
猜你喜欢

leetcode463. 岛屿的周长(简单)

2022 safety officer-a certificate test question simulation test question bank simulation test platform operation

微服务连接云端Sentinel 控制台失败及连接成功后出现链路空白问题(已解决)

LeetCode——24. 两两交换链表中的节点(三指针)

2022 national question bank and mock examination for safety officer-b certificate

Data enhancement

unittest 如何知道每个测试用例的执行时间

pycharm和anaconda的基础上解决Jupyter连接不上Kernel(内核)的问题--解决方案1

Go quick start of go language (I): the first go program

The flat life of older farmers from Beijing to Holland
随机推荐
1267_ FreeRTOS starts the first task interface prvportstartfirsttask implementation analysis
[从零开始学习FPGA编程-17]:快速入门篇 - 操作步骤2-5- VerilogHDL硬件描述语言符号系统与程序框架(软件程序员和硬件工程师都能看懂)
TC8:UDP_ MessageFormat_ 01-02
Question ac: Horse Vaulting in Chinese chess
RDKit教程
利用 MATLAB 和 DCRAW 处理数码相机 RAW 文件的完整流程
美团获得小样本学习榜单FewCLUE第一!Prompt Learning+自训练实战
项目经理如何击退被工作汇报支配的恐惧感?
2022 national question bank and mock examination for safety officer-b certificate
List和Dict数据类型作用详解
Can I eat meat during weight loss? Will you get fat?
Detailed explanation of MySQL binlog log and master-slave replication
Laravel listening mode
基于FPGA的VGA协议实现
jdbc调试错误,求指导
[ISITDTU 2019]EasyPHP
Go语言之Go 快速入门篇(一):第一个 Go 程序
JVM 的组成
MySQL quick start instance (no loss)
2022g1 industrial boiler stoker test questions and simulation test