|
但是我每次长按显示的内容都是li中上一次按的地方的内容
Model.prototype.li1Click = function(event){
if(this.comp("data1").val("state")==1){
justep.Util.hint(this.comp("choicedata").val("choice"));
this.comp("data1").setValue("state", 0);
}
else{
justep.Util.hint("失败");
}
};
Model.prototype.li1Touchstart = function(event){
var me = this;
int = setInterval(function(){
time1+=50;
if(time1>=1000){
time1=0;
time2+=1;
}
}, 15);
};
Model.prototype.li1Touchend = function(event){
if(time2>=1){
debugger;
me.comp("data1").setValue("state", 1);
time2=0;
time1=0;
window.clearInterval(int);
}
window.clearInterval(int);
};
Model.prototype.li1Touchmove = function(event){
window.clearInterval(int);
};
|
|