1.

MiniProgramError
U.createEvent is not a function
TypeError: U.createEvent is not a function

小程序开发遇到的问题汇总

 

 遇到的场景是我想调wx.openLocation  调用的参数latitude,longitude,是由云数据库获取的  上图是真机debug报错提示 没找到原因

后通过开发工具调试发现出现新的报错 如下

{errMsg: "openLocation:fail parameter error: parameter.longitude should be Number instead of String;"}

原来要用number类型 用parseFloat将latitude,longitude改为number类型后恢复正常

 

 

2.

 

相关文章:

  • 2021-12-15
  • 2021-09-07
  • 2018-01-22
  • 2019-09-27
  • 2021-09-05
  • 2021-11-05
  • 2021-08-13
  • 2018-04-23
猜你喜欢
  • 2021-11-18
  • 2021-11-08
  • 2019-02-27
  • 2021-11-17
  • 2020-03-24
  • 2021-11-27
相关资源
相似解决方案