search

Home  >  Q&A  >  body text

WEEX storage 模块在iOS端setItem失败

同样的代码在安卓可以正确保存数据
在iOS无法保存,返回event.result是failed.

是不是需要什么特殊配置才能使用?

天蓬老师天蓬老师2772 days ago424

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-04-18 09:57:51

    It turns out that setItem can only input String, not json object.
    Android may automatically convert json objects into strings, but iOS does not, so it creates the illusion that Android is fine and iOS is. . .

    reply
    0
  • Cancelreply