天气状况查询
2023-01-24 09:16:15 最后更新
t()
{
hs("https://weather.html5.qq.com",a)
sj(a,"<span>","</span><i id="gpsIcon">",df)
//截取当前位置
sj(a,"BZTQ004">","</div>",wd)
//截取温度
sj(a,"BZTQ005">","</span>",c)
//截取天气
sj(a,"BZTQ006">","</span>",d)
//截取空气质量
ufnsui()
{
ss(wd+"º",wd0)
us(3,"text",wd0)
//3为温度显示控件id
us(4,"text",df)
//4为地名显示控件id
us(7,"text",d)
//7为空气质量显示控件id
us(8,"text",c)
//8为天气情况显示控件id
}
}
说明:此代码可以联网查询你当地的天气情况,所在地是自动识别的。