最新回答 / Nero總是學不會
測試了一下可以用,看看是不是JS<script?src="move.js"></script>引用路徑有誤,另外需要加Flag來保證只有每個值都達到target才停止動畫,不然透明度到1寬度還沒到400就不動了
2017-05-02
最新回答 / 慕移動9181930
strlen($data)時所對應的字符不存在,為什么會不存在呢?還有這句時strlen($data)是什么意思呢?老師好像沒說?在系統(tǒng)驗證時,是==之間不能有空格。
2017-05-02
已采納回答 / 赤水三千
我猜是this的的作用域問題,onmouseover內(nèi)的function函數(shù)應該把this傳參,因為第二個function中的this不再指向op本身。相關的this 問題我也不太明白,正學習應改為op.onmouseover = function() {var that = this //將this傳參yd(that, "height", 300, function() {yd(that,"width",400); });}不知道對不對,共勉。
2017-04-30
哈哈 我就知道用js給 后端發(fā)請求 修改頁面上的數(shù)據(jù) js是有存在的意義的 結(jié)構(gòu) 表現(xiàn) 和行為 這三個應該是前端的三個組成部分吧 結(jié)構(gòu)應該是html 表現(xiàn)應該是css 行為感覺就是js啦。。。。 。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。實在扯不下去了 我先撤了
2017-04-30
關于offsetLeft與style.left的區(qū)別:http://www.cnblogs.com/woshilee/articles/1951457.html
2017-04-28
var target=0;
if(speed>0){
target=0;
}else if(speed<0){
target=-250;
}
if(oDiv.offsetLeft==target){
clearInterval(timer);
}else{
oDiv.style.left=oDiv.offsetLeft+speed+"px";
}
if(speed>0){
target=0;
}else if(speed<0){
target=-250;
}
if(oDiv.offsetLeft==target){
clearInterval(timer);
}else{
oDiv.style.left=oDiv.offsetLeft+speed+"px";
}
2017-04-28
挖了一個坑,一起跳吧:
if(myys.offsetLeft>a){
b=-9;
}
else if((a-myys.offsetLeft)%9!=0){
b=(a-myys.offsetLeft)%9;
}
else{
b=9;
}
if(myys.offsetLeft>a){
b=-9;
}
else if((a-myys.offsetLeft)%9!=0){
b=(a-myys.offsetLeft)%9;
}
else{
b=9;
}
2017-04-25