//創建節點選擇器 var query = wx.createSelectorQuery(); //選擇id query.select('#content').boundingClientRect() query.exec(function (res) { //res就是 所有標簽為mjltest的元素的信息 的數組 console.log(res); //取高度 console.log(res[0].height); })
//創建節點選擇器 var query = wx.createSelectorQuery(); //選擇id query.select('#content').boundingClientRect() query.exec(function (res) { //res就是 所有標簽為mjltest的元素的信息 的數組 console.log(res); //取高度 console.log(res[0].height); })
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。