jquery里的$('this')和小程序里的this

都是指向当前最近的一个方法,如果在ajax请求里面用或者定时器里面,需要在外面定义一下,
jquery:var $this= $(this)  
小程序:var that = this
再请求里面引用
posted @ 2020-07-14 14:57  瑶玲  阅读(184)  评论(0编辑  收藏  举报