想把Humidity的值在小程序上显示,希望大佬能帮忙解惑
小程序怎么读取阿里云发送的json对应的值?How does the applet read the value corresponding to the json sent by Alibaba Cloud?
小程序怎么读取阿里云发送的json对应的值?想把Humidity的值在小程序上显示,希望大佬能帮忙解惑
I want to display the value of humidity on the applet. I hope the boss can help solve my doubts
回答:
按照json取值方式取你想要的字段即可
打印不就是读取
你把payload里的JSON用JSON.parse解析就可以了