摘要:<!DOCTYPE html><html><head><meta charset="UTF-8"><title>jquery基础语法</title> <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.j
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>jquery基础语法</title> <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"> </script> </head> <body> <!-- 文档就绪语法 $(document).ready(function(){ //jquery code }) --> <script> $(document).ready(function(){ //表单选择器 $(':enabled').css('background','pink') $(':disabled').css('background','blue') }) </script> <form action=""> 输入框1 <input type="text" name=""><br> 输入框2 <input type="text" name=""><br> 输入框3 <input type="text" name="" disabled><br> 输入框4 <input type="text" name=""><br> </form> </body> </html>
批改老师:查无此人批改时间:2019-01-11 09:28:57
老师总结:基本语法没什么问题。 注释的那块尽量删掉,或者放在script标签里面。 万一注释被删掉,就会报错了。加油