把jQuery添加到网页中

添加jquery

方法一:

对于已经下载了jQuery:

<head>

<script src="jquery.js"></script>

</head>

这样就可以了。

方法二:

通过微软的cdn来:

<head>

<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.0.js">

</script>

</head>

猜你喜欢

转载自blog.csdn.net/weixin_41060905/article/details/82389875