use src tag to import the resource
<script src="/js/jquery-3.4.1.min.js "></script>
You can write down console in your browser. 可以在浏览器 console 中输入
$.fn.jquery
It is neccessary to put the main code in the ready function since most functions are executed after the DOM tree is rendered. 绝大多数操作需在文档就绪后才执行,因此jquery的代码入口就在这个函数中
$(document).ready(function(){ main code }