码迷,mamicode.com
首页 > Web开发 > 详细

Jquery | 基础 | html()

时间:2018-10-17 00:11:25      阅读:201      评论:0      收藏:0      [点我收藏+]

标签:body   pre   size   title   har   cti   javascrip   type   function   

 

 1 <!DOCTYPE html>
 2 <html lang="en">
 3 
 4 <head>
 5     <meta charset="UTF-8">
 6     <meta name="viewport" content="width=device-width, initial-scale=1.0">
 7     <meta http-equiv="X-UA-Compatible" content="ie=edge">
 8     <title>Document</title>
 9     <style type="text/css">
10         div {
11             padding: 8px 0px;
12             font-size: 12px;
13             text-align: center;
14             border: solid 1px #888;
15         }
16     </style>
17     <script src="jquery-3.3.1.min.js" type="text/javascript"></script>
18     <script type="text/javascript">
19         $(document).ready(function () {
20             $("div").html("您好!欢迎来到jQuery的精彩世界。");
21         });
22     </script>
23 </head>
24 
25 <body>
26     <div></div>
27 </body>
28 
29 </html>

技术分享图片

 

Jquery | 基础 | html()

标签:body   pre   size   title   har   cti   javascrip   type   function   

原文地址:https://www.cnblogs.com/jj81/p/9800944.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!