課程
/前端開發(fā)
/JavaScript
/JavaScript進(jìn)階篇
為什么我的不顯示答案,求大神幫忙看一下
2017-12-19
源自:JavaScript進(jìn)階篇 6-11
正在回答
這是你的代碼:
<input type='button' value=' = ' onclick=count()/>
應(yīng)該這樣:
<input type='button' value=' = ' onclick='count()'/>
onclick那里你沒加引號…………
_invincible07_ 提問者
用eval把parseInt()+parseInt()括起來 eval(parseInt()+parseInt())
舉報
本課程從如何插入JS代碼開始,帶您進(jìn)入網(wǎng)頁動態(tài)交互世界
2 回答啊啊啊啊啊啊啊啊啊啊啊啊啊啊
1 回答不會啊啊啊啊啊啊
1 回答不會啊啊啊啊
1 回答啊啊啊啊啊啊
3 回答為什么不對啊啊啊啊啊啊啊
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2017-12-19
這是你的代碼:
<input type='button' value=' = ' onclick=count()/>
應(yīng)該這樣:
<input type='button' value=' = ' onclick='count()'/>
onclick那里你沒加引號…………
2017-12-19
用eval把parseInt()+parseInt()括起來 eval(parseInt()+parseInt())