s id=这里填写手机号输入框id
s id1=这里是显示文本id
ug(id,"text",sjh)
us(id1,"text","")
f(sjh!="")
{
s gsd="http://www.096.me/api.php?mode=txt&phone="
t()
{
ss(gsd+sjh,uuu)
syso(uuu)
hs(uuu,null,null,gsd2)
syso(gsd2)
f(gsd2?"不是合法的手机号码")
{
tw("查询失败,请检查手机号是否正确!")
}
else
{
f(gsd2!="null")
{
sj(gsd2,"||","||",gsd3)
sr(gsd3," ","",gsd3)
syso(gsd3)
us(id1,"text",gsd3)
}
else
{
tw("网络不给力啊!")
}
}
}
}
else
{
tw("请填写手机号!")
}