标签: jquery
`var x=0; $(document).on('touchstart', "#box", function (e) { x=1; }) console.log(x);`
每当我运行此代码并触摸#box时,它始终显示x = 0。如何在touchstart事件之外访问x的值?