xtype: 'textfield',
name: 'field02',
required:true,
label: '工位:',
labelWidth:'40',
id:'station',
disabled:true,
placeHolder: '工位',
listeners:{
initialize:function(st, eOpts){
this.element.on({
tap : function(com, e, eOpts) {
console.log(12345678);
},
touchstart:function(){
console.log("touch start......");
},
touchend:function(){
console.log("touch end......");
}
})
}
}
name: 'field02',
required:true,
label: '工位:',
labelWidth:'40',
id:'station',
disabled:true,
placeHolder: '工位',
listeners:{
initialize:function(st, eOpts){
this.element.on({
tap : function(com, e, eOpts) {
console.log(12345678);
},
touchstart:function(){
console.log("touch start......");
},
touchend:function(){
console.log("touch end......");
}
})
}
}
本文介绍了一个ExtJS中关于文本框事件监听的示例代码。该文本框被设置为不可编辑状态,并绑定了tap、touchstart及touchend事件。通过这些事件可以进行移动端交互的日志打印,适合用于了解如何在ExtJS框架内实现触摸事件。
225

被折叠的 条评论
为什么被折叠?



