老师,在iframe里指定src=自己.html 为什么不会无限套娃下去呢,只有两层就没了
老师背景颜色没有变色怎么回事呀,文件都引入了其他都没问题两个浏览器也试过了,方法啥的都有用就是不变色
我的和老师的不一样,同样图片均在img目录下,为何我的多两个点,我试了一下,去掉俩点图片加载不出来,请问,这两个点有什么用??
老师,上标波浪线~咋打呀
<html> <head> <title>jQuery操作表格</title> <meta charset="UTF-8"/> <!--声明css代码域--> <style type="text/css"> tr{ height: 40px; } </style> <script type="text/javascript" src="js/jquery-1.9.1.js" charset="UTF-8"></script> <script type="text/javascript" src="js/gwc.js" charset="UTF-8"></script> </head> <body> <h3>jQuery操作表格</h3> <hr /> <input type="button" id="fx" value="反选" /> <input type="button" id="addRow" value="新增一行" /> <input type="button" id="delRow" value="删除行" /> <input type="button" id="copyRow" value="复制行" /> <table border="1px" cellpadding="10px" cellspacing="0" id="ta"> <tr> <td width="50px"><input type="checkbox" name="chks" id="chks" value="1" /></td> <td width="200px">书名</td> <td width="200px">作者</td> <td width="200px">数量</td> <td width="200px">操作</td> </tr> <tr id=""> <td><input type="checkbox" name="chk" id="" value="2"/></td> <td>《Java编程之道》</td> <td>wollo</td> <td>10</td> <td> <input type="button" name="aa" id="" value="修改数量" onclick="change(this)" /> <input type="button" name="" id="" value="删除" onclick="del(this)"/> </td> </tr> <tr> <td><input type="checkbox" name="chk" id="" value="3" /></td> <td>《Python和我的故事》</td> <td>赵老师</td> <td>10</td> <td> <input type="button" name="" id="" value="修改数量" onclick="change(this)"/> <input type="button" name="" id="" value="删除" onclick="del(this)"/> </td> </tr> <tr> <td><input type="checkbox" name="chk" id="" value="4" /></td> <td>《web开发详解》</td> <td>张老师</td> <td>30</td> <td> <input type="button" name="" id="" value="修改数量" onclick="change(this)"/> <input type="button" name="" id="" value="删除" onclick="del(this)"/> </td> </tr> </table> </body> </html>
$(function(){ //确定全选按钮是否按下的操作 $("#chks").click(function(){ var flag=$(this).prop("checked"); $("input[name=chk]").prop("checked",flag); }) //判断是否全选的操作 $("input[name=chk]").click(function(){ var flag=true; var chk=$("input[name=chk]"); chk.each(function(){ if(!$(this).prop("checked")){ flag=false; return; } }) $("#chks").prop("checked",flag); }) //反选的操作 $("#fx").click(function(){ var chx=$("input[type=checkbox]"); chx.each(function(){ //获得多选款的初始状态 var flag=$(this).prop("checked"); $(this).prop("checked",!flag); }) }) //添加一行的操作 $("#addRow").click(function(){ //获得table对象 var tab=$("#ta"); tab.append('<tr id="">'+ '<td><input type="checkbox" name="chk" id="" value="2"/></td>'+ '<td>《Java编程之道》</td>'+ '<td>wollo</td>'+ '<td>'10</td>+ '<td>'+ '<input type="button" name="aa" id="" value="修改数量" />$nbsp;'+ '<input type="button" name="" id="" value="删除" />'+ '</td>'+ '</tr>'); }) //删除操作 $("#delRow").click(function(){ var del=$("input[name=chk]:checked"); if(del.length==0){ alert("至少选择一行"); }else{ //执行删除操作 del.parent().parent().remove(); } }) //复制行 $("#copyRow").click(function(){ var copy=$("input[name=chk]:checked"); if(copy.length==0){ alert("至少选择一行"); }else{ //执行复制 //复制 var tr=copy.parent().parent().clone(); //粘贴 $("#ta").append(tr); } }) }) //修改数量 function change(th){ //tr节点获得 var par=$(th).parent().parent(); par.children().eq(3).html("<input type='text' size='3px' onblur='bul(this)'/>") } function bul(th){ var par =$(th).parent().parent();par.children().eq(3).html(th.value()); } //删除内容 function del(th){ var par=$(th).parent().parent(); par.remove(); }
老师,我按照课上内容写的,怎么报这些错呢?
老师,jQuery里面两种事件方式都可以使用吗
老师,上面的checked是下面语句前面中哪一个checked啊,prop()作用是什么呢
老师,这里面的双引号和单引号运用有什么区别吗
老师,属性选择器和表单属性选择器有什么区别吗
老师这个if条件是 flag 我有点不清楚 如果他想要进入if 语句不该是 flag满足一个条件吗,为什么直接写一个flag呢?
老师,那这个iframe的网页布局能不能做到对不同分辨率的自适应。就比如,我在14寸的电脑上设计的网页,我怕在15.6寸或台式机上就会出现比例出错,排版有误的问题???
老师,上面不是已经指定type了吗,框中这个代码是什么作用呢
老师,这里不太懂,checked不是一个判断方法吗,为什么还能赋值呢,而且赋了值又是在哪里判断的呢
老师,这里获得的节点是<>....</>这样的整个一个语句吗
老师,这里面的<a>是什么作用呢,这里href和name里的内容是随便起的名吗?
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637