uniapp的plus
时间: 2023-08-15 14:04:14 浏览: 88
uniapp + vue3 + TypeScript + pinia + uviewplus
在uni-app中,使用plus的API不需要等待plus ready,可以直接使用。而且如果调用plus ready,反而不会触发。\[1\]在uni-app中调用HTML5+的扩展规范时,需要注意使用条件编译,否则在H5、小程序等平台会出现"plus is not defined"错误。\[2\]在uni-app的pages.json文件中,可以看到"app-plus"字段,该字段用于指定在H5端和app端执行的代码,而小程序端则不执行。\[3\]
#### 引用[.reference_title]
- *1* *2* [3-2 uni-app 使用 HTML5+ (plus) 注意事项](https://blog.csdn.net/m0_51180924/article/details/122921166)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [uni-app 1、app-plus的使用,#ifdef MP只兼容小程序](https://blog.csdn.net/weixin_42861240/article/details/103727739)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文