会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
晨风
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
下一页
2019年4月23日
js判断iPhone XS、iPhone XS Max、iPhone XR
摘要: // 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
阅读(2085)
评论(1)
推荐(0)
2019年4月17日
JS 时间字符串与时间戳之间的转换
摘要: 1、当前时间换时间戳 2、当前时间换日期字符串 3、日期字符串转时间戳 4、时间戳转日期字符串
阅读全文
posted @ 2019-04-17 15:12 cxf2018
阅读(27662)
评论(0)
推荐(1)
2019年4月12日
webview 更新方法细节
摘要: plus.webview.getWebviewById("user.home").evalJS("getHomeData()");//调用页面方法 plus.webview.currentWebview().opener().evalJS("queryStudentByParent()");//调用
阅读全文
posted @ 2019-04-12 17:27 cxf2018
阅读(1142)
评论(0)
推荐(0)
2019年3月28日
plus调用android原生页面
摘要: 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
阅读(6022)
评论(0)
推荐(0)
2019年3月24日
plus.webview更新上一个页面的信息
摘要: let currentWebview = plus.webview.currentWebview(); let backWebview = currentWebview.opener(); backWebview.evalJS('updata()'); setTimeout(function(){
阅读全文
posted @ 2019-03-24 15:46 cxf2018
阅读(778)
评论(0)
推荐(0)
2019年3月13日
position: fixed; ios 无法滑动解决
摘要: 添加以下代码搞定 -webkit-overflow-scrolling: touch; overflow-y: scroll; -webkit-overflow-scrolling: touch; overflow-y: scroll;
阅读全文
posted @ 2019-03-13 17:33 cxf2018
阅读(1144)
评论(0)
推荐(0)
2019年3月12日
CSS3 移动端 1PX 线变成0.5PX
摘要: .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
阅读(283)
评论(0)
推荐(0)
2019年3月1日
html5+ 原生标题栏添加input 输入框
摘要: titleNView: { backgroundColor: "#f7f7f7", // 导航栏背景色 titleText: "", // 导航栏标题 titleColor: "#000000", // 文字颜色 // type: "transparent", // 透明渐变样式 autoBackB
阅读全文
posted @ 2019-03-01 20:13 cxf2018
阅读(934)
评论(0)
推荐(0)
2019年2月28日
vscode在vue-cli中按照ESlint自动格式化代码
摘要: 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
阅读(317)
评论(0)
推荐(0)
2019年2月26日
android调用plus报错plus is not defined
摘要: 由于plus 加载需要时间,我们使用plus 的时候应该提前判断是否已经加载好,添加监听 document.addEventListener("plusready",function(){******方法*****;});
阅读全文
posted @ 2019-02-26 17:18 cxf2018
阅读(2256)
评论(0)
推荐(0)
上一页
1
2
3
下一页
公告