Jquery 入口函数 20221026 My First Test
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>Jquery 入口函数 20221026</title> <script src="jquery-3.4.1.min.js" type="text/javascript"></script> </head> <body> <script language="javascript" type="text/javascript"> $( function () { $("#myDiv")[0].innerHTML = "sdsds"; $("#myDiv").hide(); } ) </script> <div id="myDiv">My First Test</div> </body> </html>
脚本将在页面加载时(原生态:DOMContentLoaded )执行。
标签:Jquery,20221026,myDiv,入口,加载,页面 From: https://www.cnblogs.com/sportdog/p/16828350.html