Home > php教程 > PHP开发 > body text

A brief discussion on 4 ways to initialize Jquery pages

高洛峰
Release: 2016-12-05 09:51:53
Original
1098 people have browsed it

<script src="Scripts/jquery-1.8.2.min.js"></script>
<script type="text/javascript">
 $(document).ready(function () {
  alert("第一种方法。");
 });
 $(function () {
  alert("第二种方法。");
 });
 jQuery(function ($) {
  alert("第三种方法。");
 });
 window.onload = function () {
  alert("第四种方法。");
 }
</script>
Copy after login


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!