uniapp 下 原生检测 通知栏,Android、iOS都支持
直接上代码,不多说了 // 原生检测 export default { /** * 检测通知栏 */ checkNotification:function(){ if(plus.os.name.toLowerCase() == 'ios')
LATEST UPDATES
记录 PHP、Go、前端与服务器运维的真实实践,涵盖 uniapp 小程序、Docker、Nginx 与 AI Agent 的使用心得,每篇都来自项目里的踩坑与验证。
直接上代码,不多说了 // 原生检测 export default { /** * 检测通知栏 */ checkNotification:function(){ if(plus.os.name.toLowerCase() == 'ios')
<input type="text" onkeyup="onlyNumber(this)"/> function onlyNumber(obj){
在此记录一下,转自:https://www.oschina.net/code/snippet_260395_39205 WGS-84:是国际标准,GPS坐标(Google Earth使用、或者GPS模块) GCJ-02:中国坐标偏
// main.js 文件 // 全局 event bus Vue.prototype.$eventHub = new Vue(); // a.js 接收参数的文件 _self = this // 监听 全局 event bus this.
// ajax var Fly = require('./plugins/tools/fly.js'); var fly = new Fly //添加请求拦截器 fly.interceptors.request.use((config,pr
直接上代码 // 挂载 Vue.prototype // 示例如下: // 在 main.js 中挂载属性/方法 Vue.prototype.websiteUrl = 'http://uniapp.dcloud.io'; Vue.proto
var(--status-bar-height) 此变量在微信小程序环境为固定 25px,在 5+App 里为手机实际状态栏高度。 当设置 "navigationStyle":"custom" 取消原生导航栏后,由于窗体为沉浸式,占据了状态
conventional-changelog 安装 npm install -g conventional-changelog-cli 生成生成 CHANGELOG.md 文件 conventional-changelog -p