SetData is not a function, changed the this direction and still reported an error.

May.27,2022

if you change the variable name self is also the keyword


, just print out the self directly, and you will understand


Why not use the arrow function

setTimeout(() => {
    wx.createSelectorQuery().select().boundingClientRect((rect) => {
        this.setData()
    })
}, 500)
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e73af2-4623c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e73af2-4623c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?