开发者工具不报错,手机调试报错:MiniProgramError
wx.getPrivacySetting is not a function
TypeError: wx.getPrivacySetting is not a function
at getPrivacySetting (pages/pages/index/index.js:18:8)
at ui.<anonymous> (WASubContext.js:1:441969)
at ui.c.__callPageLifeTime__ (WASubContext.js:1:441762)
at (WASubContext.js:1:452688)
at (WASubContext.js:1:417595)
at (WASubContext.js:1:453137)
at (WASubContext.js:1:417595)
at (WASubContext.js:1:458289)
at (WASubContext.js:1:417595)
at Function.or (WASubContext.js:1:458955)
需要加上判断 if(wx.getPrivacySetting){//写隐私逻辑} 低版本是没有这个api的