jq 常用小方法
1.文本框,文本區域? $("#txt").attr("value",'');//清空內容????? $("#txt").attr("value",'11');//填充內容
2.多選框checkbox
$("#chk1").attr("checked",'');//不打勾
$("#chk2").attr("checked",true);//打勾
if($("#chk1").attr('checked')==undefined) //判斷是否已經打勾
轉載于:https://www.cnblogs.com/chencheng365/p/4256993.html
總結
- 上一篇: 设计模式--抽象工厂(个人笔记)
- 下一篇: tag的使用