收藏
回答

address_component

VM415:1 thirdScriptError

Cannot read property 'address_component' of undefined;at zh_tcwq/pages/index/index onReady function;at api request success callback function

TypeError: Cannot read property 'address_component' of undefined


最后一次编辑于  2018-09-08  (未经腾讯允许,不得转载)
邀请回答
复制链接收藏关注问题回答

5 个回答

  • 王松松
    王松松
    2018-09-08

    这是什么原因亚


    2018-09-08
    赞同
    回复
  • undefined
    undefined
    2018-09-08

    你看看你的index页面,onReady里面的request成功返回的结果,log出来,是不是没有'address_component'这个字段

    2018-09-08
    赞同
    回复 3
    • 王松松
      王松松
      2018-09-08

      我把源码给你帮我看看


      2018-09-08
      赞同
      回复
    • 王松松
      王松松
      2018-09-08回复王松松

      thirdScriptError

      Cannot read property 'address_component' of undefined;at zh_tcwq/pages/index/index onReady function;at api request success callback function

      TypeError: Cannot read property 'address_component' of undefined

          at Object.success (http://127.0.0.1:33505/appservice/zh_tcwq/pages/index/index.js:306:58)

          at http://127.0.0.1:33505/appservice/we7/resource/js/util.js:104:69

          at Function.function.u.(anonymous function) (http://127.0.0.1:33505/appservice/__dev__/WAService.js:4:17960)

          at Object.success (http://127.0.0.1:33505/appservice/__dev__/WAService.js:3:27202)

          at s.<anonymous> (http://127.0.0.1:33505/appservice/__dev__/WAService.js:13:16308)

          at s.emit (http://127.0.0.1:33505/appservice/__dev__/WAService.js:6:12226)

          at Function.<anonymous> (http://127.0.0.1:33505/appservice/__dev__/WAService.js:13:17607)

          at http://127.0.0.1:33505/appservice/__dev__/WAService.js:5:7046

          at a (http://127.0.0.1:33505/appservice/appservice?t=1536372266751:1938:7517)

          at b.<anonymous> (http://127.0.0.1:33505/appservice/appservice?t=1536372266751:1938:7604)


      2018-09-08
      赞同
      回复
    • undefined
      undefined
      2018-09-08

      不是这样的,你去index.js ,onReady生命周期内,有个request请求,你在这个请求成功后有调用一个 address_component ,但是这个字段是 我的名字

      2018-09-08
      赞同
      回复