小程序项目报错

一、问题描述:

  我在写好项目之后,在本地运行无异常,但使用真机调试时,出现了Page is not constructed because it is not found.错误。

二、解决办法:

  在所有的.js文件中,加入

    Page({})解决了问题。

猜你喜欢

转载自www.cnblogs.com/monty12/p/10460801.html