Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
"ui"; ui.layout( <vertical padding="16"> <button id="click_me" text="点我" w="auto"/> </vertical> ); ui.click_me.on("click", ()=>{ toast("第一次点输出:我被点啦"); //如果第二次点我想输出:第二次被点应该怎么办? });
"ui"; ui.layout( <vertical padding="16"> <button id="click_me" text="点我" w="auto"/> </vertical> ); var i = 0; ui.click_me.on("click", ()=>{ i++; toast("点击第"+i+"次"); });
@yangzai 太感谢了!!原来这么简单我真是笨死了