《javascript基础教程与应用》辅导资料十八

发布时间:2024-01-08 11:01:07浏览次数:21
 基础教程与应用辅导资料十八主 题:课件第七章 复选框事件一、复选框事件处理复选框本身也是多个组件的名字相同。所以在定义复选框的同事依然要使用 取得全部的内容。范例:操作复选框要求是可以一个个去选择选项,也可以直接全选,全选按钮的状态根据选中的选项个数自动变化,即全选按钮的状态会自动取消或者自动勾选。 !"#$"%""&'((&)"&'(*"%复选框的测试+%"(+*")),%-++获取复选框元素&'(.&'(./&012.&3./+4点击全选按钮全部选中的情况4+&05".&.,%-,&'(6-++一个选项时&'(&&&/7"-,8/&'(/99-++多个选项时&'(:;&"&/777,"/ ++全部按钮什么时候被自动选中以及自动取消,&'(6-++一个选项时&'(05".&.,%-&&&'(&/7,"/7"-,8/&'(/99-++多个选项时 &'(:;05".&.,%-,8/&'(/99-,&'(:;&-&&,"/++全选自动取消'&/7"-,&'(<-&&/7/++全选自动勾选777,"/77++打印您所有的选择012."1.05".&.,%-+4一个个去选择时的情况4+"您选择的爱好有:/,&'(6-++一个选项时,&'(&""9&'(/7"-,8/&'(/99-++多个选项时,&'(:;&""9&'(:;9、/7/7"/7,"/7+" +',%您的爱好有='+&'(&'(&'(电影电影'+&'(&'(&'(音乐音乐'+&'(&'(&'(看书看书'+&'(&'(&'(打球打球'+&'(&'(&'(爬山爬山'+&'(&'(&'(游泳游泳'+&'(&3&3以上全部以上全部'+'>"1"1选择+,+'+二、复选框全选,反选,不选")),%- &3012.3./? &012.&./@ &012.&./012../ &1(0"1A!../ &3&,%-,8/ &1(/99- &1(:;&/7/7/? &&,%-,8/ &1(/99- &1(:;&,"/7/7/&&,%-,8/ &1(/99-, &1(:;&- &1(:;&,"/ 7"- &1(:;&77/7/7/+"+'全选:'>3全选+'+不选'>&不选+'+反选'>&反选+'+&'(+B0350C'+&'(+15@D'+&'(+E@@ '+++'
文档格式: docx,价格: 5下载文档
返回顶部