在uni项目钟 使用h5+的puls
可以直接使用uni的 条件编译
就可以直接使用了
// #ifdef APP-PLUS plus.nativeUI.toast(str); // #endif // #ifndef APP-PLUS uni.showToast({ title: str, icon:'none', duration:2000 }); // #endif
比较方便。