摘要: // iPhone X、iPhone XS var isIPhoneX = /iphone/gi.test(window.navigator.userAgent) && window.devicePixelRatio && window.devicePixelRatio 3 && window.sc 阅读全文
posted @ 2019-04-23 15:40 cxf2018 阅读(2028) 评论(1) 推荐(0) 编辑
摘要: 1、当前时间换时间戳 2、当前时间换日期字符串 3、日期字符串转时间戳 4、时间戳转日期字符串 阅读全文
posted @ 2019-04-17 15:12 cxf2018 阅读(27610) 评论(0) 推荐(1) 编辑
摘要: plus.webview.getWebviewById("user.home").evalJS("getHomeData()");//调用页面方法 plus.webview.currentWebview().opener().evalJS("queryStudentByParent()");//调用 阅读全文
posted @ 2019-04-12 17:27 cxf2018 阅读(1052) 评论(0) 推荐(0) 编辑
摘要: var main = plus.android.runtimeMainActivity(); var Intent = plus.android.importClass("android.content.Intent"); var intent = new Intent(main.getIntent 阅读全文
posted @ 2019-03-28 11:38 cxf2018 阅读(5753) 评论(0) 推荐(0) 编辑
摘要: let currentWebview = plus.webview.currentWebview(); let backWebview = currentWebview.opener(); backWebview.evalJS('updata()'); setTimeout(function(){ 阅读全文
posted @ 2019-03-24 15:46 cxf2018 阅读(730) 评论(0) 推荐(0) 编辑
摘要: 添加以下代码搞定 -webkit-overflow-scrolling: touch; overflow-y: scroll; -webkit-overflow-scrolling: touch; overflow-y: scroll; 阅读全文
posted @ 2019-03-13 17:33 cxf2018 阅读(1130) 评论(0) 推荐(0) 编辑
摘要: .line1 {position:relative} .line1:after {content:'';position:absolute;bottom:0;left:0;width:100%;height:1px;border-bottom:1px solid #e0e0e0;-webkit-tr 阅读全文
posted @ 2019-03-12 14:19 cxf2018 阅读(275) 评论(0) 推荐(0) 编辑
摘要: titleNView: { backgroundColor: "#f7f7f7", // 导航栏背景色 titleText: "", // 导航栏标题 titleColor: "#000000", // 文字颜色 // type: "transparent", // 透明渐变样式 autoBackB 阅读全文
posted @ 2019-03-01 20:13 cxf2018 阅读(924) 评论(0) 推荐(0) 编辑
摘要: 1 npm i -S eslint-plugin-vue 1 npm i -S eslint-plugin-vue 1 npm i -S eslint-plugin-vue 1 npm i -S eslint-plugin-vue npm i -S eslint-plugin-vue .eslint 阅读全文
posted @ 2019-02-28 20:16 cxf2018 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 由于plus 加载需要时间,我们使用plus 的时候应该提前判断是否已经加载好,添加监听 document.addEventListener("plusready",function(){******方法*****;}); 阅读全文
posted @ 2019-02-26 17:18 cxf2018 阅读(2210) 评论(0) 推荐(0) 编辑