第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

求大神指導(dǎo)下哦 點(diǎn)擊“=”沒有反應(yīng)呢?

求大神指導(dǎo)下哦 點(diǎn)擊“=”沒有反應(yīng)呢?

慕容6447874 2018-07-15 12:54:34
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><script type="text/javascript">function count(){??? var num1=document.getElementById("num1").value ,??? symble=document.getElementById("symble"),??? num2=document.getElementById("num2").value ,??? result;??????? switch(symble){??????????? case"+":??????????? result=parseInt(num1)+parseInt(num2);??????????? break;??????????? case"-":??????????? result=parseInt(num1)-parseInt(num2);??????????? break;??????????? case"*":??????????? result=parseInt(num1)*parseInt(num2);??????????? break;??????????? case"/":??????????? result=parseInt(num1)/parseInt(num2);??????????? break;??????????? default:??????????? result=null;??????????? }??????????? document.getElementById("num3") = result;??????? }</script>><title>計(jì)算器簡(jiǎn)單功能實(shí)現(xiàn)</title></head><body><input type="text" name="num" id="num1"><select id="symble"><option>+</option><option>-</option><option selected="selected">*</option><option>/</option></select><input type="text" name="num" id="num2"><input type="button" value="=" onclick = "count()"><input type="text" name="num" id="num3"></body></html>
查看完整描述

1 回答

已采納
?
Caballarii

TA貢獻(xiàn)1123條經(jīng)驗(yàn) 獲得超629個(gè)贊

symble=document.getElementById("symble").value,


document.getElementById("num3").value= result;


兩個(gè)地方

查看完整回答
1 反對(duì) 回復(fù) 2018-07-15
  • 1 回答
  • 0 關(guān)注
  • 894 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)