課程
/前端開發(fā)
/JavaScript
/用JS實(shí)現(xiàn)購物車特效
這個(gè)例子用jQuery怎么寫呀
2015-12-27
源自:用JS實(shí)現(xiàn)購物車特效 2-12
正在回答
<script?src="http://lib.sinaapp.com/js/jquery/1.9.1/jquery-1.9.1.min.js"></script> ????<script?type="text/javascript"> $(function(){ ????????????//綁定點(diǎn)擊刪除按鈕回調(diào)函數(shù) $("#del").on('click',function(){ $("#table?tr?input").each(function(index,element){ console.log(index); console.log($(this).is(":checked")); if($(this).is(":checked")) { $(this).parent().parent().remove(); } }) }); ???????????? }); ????</script>
舉報(bào)
通過JavaScript實(shí)現(xiàn)類似淘寶網(wǎng)絡(luò)購物車功能效果
1 回答如果用jquery寫呢
3 回答老師這個(gè)用的是什么軟件寫的代碼呀?我用eclipse可以嗎?
1 回答以,為什么呀
3 回答用火狐瀏覽器取消選擇沒有用,估計(jì)是不識(shí)別srcElement,但是不知道怎么解決,請(qǐng)大神指導(dǎo)
4 回答我想寫一個(gè)addclass的方法應(yīng)該如何寫?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2016-05-19