为什么 .on('load', function () { 不适用于按钮?
Why is .on('load', function () { not working for a button?
工作.on('click'
没有问题。
myApp.onPageAfterAnimation('about', function (page) {
$$('#button1').on('click', function () {
alert('test');
不工作.on('load'
为什么?
myApp.onPageAfterAnimation('about', function (page) {
$$('#button1').on('load', function () {
alert('test');
onload
仅支持事件 HTML 标签:
body, frame, iframe, img, input type="image", link, script, style
工作.on('click'
没有问题。
myApp.onPageAfterAnimation('about', function (page) {
$$('#button1').on('click', function () {
alert('test');
不工作.on('load'
为什么?
myApp.onPageAfterAnimation('about', function (page) {
$$('#button1').on('load', function () {
alert('test');
onload
仅支持事件 HTML 标签:
body, frame, iframe, img, input type="image", link, script, style