jQuery
JavaScript和jQuery库
jQuery库:里面存在大量的JavaScript函数
官网:https://jquery.com/
导入:
//在线导入
或者 //文件夹引入
<a href="",id = "test-jquery">点击</a>
<script>
let a = document.getElementById('test-jquery');
//选择器就是css的选择器
$('#test-jquery').click(function() {
alert("hello word");
})
</script>