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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

clearIntelval(timer)報(bào)錯(cuò)?第一次使用clearIntelval(timer)報(bào)錯(cuò)

<!doctype html>

<html>

<head>

<meta charset="UTF-8">

<title>運(yùn)動(dòng)</title>

<style type="text/css">

*{margin: 0;padding: 0;}

#box{width: 200px;height: 200px;background-color: red;position: relative;left: -200px;top: 0;}

#box span{width: 20px;height: 50px;position: absolute;top: 50px;left: 200px;background-color: blue;}

</style>

<script type="text/javascript">

window.onload=function(){

var obox = document.getElementById('box');

obox.onmouseover = function () {

startmove();

}

/* obox.onmouseout = function(){

backmove();

}?

*/ }

var timer = null;

function startmove() {

clearIntelval(timer);

var obox = document.getElementById('box');

timer = setInterval(function () {

if (obox.offsetLeft==0) {

clearInterval(timer);

}else{

obox.style.left = obox.offsetLeft + 1 +"px";

}

},30)

}

/* function backmove(){

clearIntelval(timer);

var obox = document.getElementById('box');

timer = setInterval(function(){

if (obox.offsetLeft == -200) {

clearInterval(timer);

}else{

obox.style.left = obox.offsetLeft - 10 +"px";

}

},30)

}

*/

</script>

</head>

<body>

<div id="box"><span>分享</span></div>

</body>

</html>


正在回答

3 回答

如果你是用Sublime編輯器的話按照下面步驟裝就好,記得裝Node.js哦:

http://www.wiibil.com/website/sublimelinter-jshint-csslint.html

http://www.cnblogs.com/lhb25/archive/2013/05/02/sublimelinter-for-js-css-coding.html

0 回復(fù) 有任何疑惑可以回復(fù)我~

建議裝個(gè)語法檢查插件,sublime可以用Linter 和Linter-js

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

啊啊啊啊123 提問者

一搜都是到這個(gè)網(wǎng)站github.com,英語渣渣看不懂
2016-07-14 回復(fù) 有任何疑惑可以回復(fù)我~

clearIntelval這也是醉了

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
JS動(dòng)畫效果
  • 參與學(xué)習(xí)       113916    人
  • 解答問題       1502    個(gè)

通過本課程JS動(dòng)畫的學(xué)習(xí),從簡單動(dòng)畫開始,逐步深入各種動(dòng)畫框架封裝

進(jìn)入課程

clearIntelval(timer)報(bào)錯(cuò)?第一次使用clearIntelval(timer)報(bào)錯(cuò)

我要回答 關(guān)注問題
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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