嚴(yán)格意義上來講,正確答案 B里面的 setInterval(function(){alert("abc")},1000),里面的alert()后面不是應(yīng)該加個(gè)分號";"么?雖然說省略掉一樣可以運(yùn)行
2015-10-22
<div style="width:400px;margin-left:50%;">
<img src="http://img1.sycdn.imooc.com//53577ee900016c2102080260.jpg" id="myImage" /><br/>
<input type="button" id="max" value="放大" />
<input type="button" id="min" value="縮小" />
<img src="http://img1.sycdn.imooc.com//53577ee900016c2102080260.jpg" id="myImage" /><br/>
<input type="button" id="max" value="放大" />
<input type="button" id="min" value="縮小" />
2015-10-06
小伙伴們,如果覺得慕課網(wǎng)的JavaScript教程有點(diǎn)難,建議看看這個(gè)js教程,寫得相當(dāng)不錯(cuò),有可能比慕課網(wǎng)的好,來推薦一下:http://www.lvyestudy.com/les_js/js_list.aspx
2015-09-14
每次點(diǎn)擊可以設(shè)置延時(shí)時(shí)間給500毫秒就不用比較判斷了??!
2015-09-10
已采納回答 / 非常OK
<!DOCTYPE html><html><head>?<meta charset="UTF-8">?<title>圖片縮放效果</title>?<style type="text/css">??#con{margin:0 auto; width:830px;???overflow: hidden;}??#con div {float:left; border:#CCC solid 1px; ???height: 200p...
2015-08-26
講師回答 / Ben
clearInterval(maxfun);應(yīng)該是clearInterval(maxtime); ?因?yàn)殛P(guān)閉的是定時(shí)器 ?而不是關(guān)閉函數(shù)
2015-08-05