摘要: js $('.img').click(function(){ $(this).parent().children('img').attr('src','./images/images.php?id='+Math.random()); }) js $('.img').click(function(){ 阅读全文
posted @ 2018-04-21 16:24 ksy_c 阅读(121) 评论(0) 推荐(0)
摘要: HTML 我们的页面上有一个歌曲列表,列出多行歌曲名称,并匹配复选框供用户选择,并且在列表下方有一排操作按钮。 <ul id="list"> <li><label><input type="checkbox" value="1"> 1.时间都去哪儿了</label></li> <li><label> 阅读全文
posted @ 2018-04-21 16:13 ksy_c 阅读(463) 评论(0) 推荐(0)
摘要: $.ajax({ url:"../api/user.api.php", dataType:"html", data:{sub:val}, type:"get", success:function(data){ alert(data); } }) $.get( '../api/user.api.php 阅读全文
posted @ 2018-04-21 15:05 ksy_c 阅读(73) 评论(0) 推荐(0)