1.ios不支持window.open(),要创建a链接 let elink = document.createElement('a'); elink.href = baseURL+'/onlineContract/downloadPdf2'+'?custId='+this.$route.query Read More
posted @ 2020-03-10 17:15 梓色心晴 Views(646) Comments(0) Diggs(0) Edit
摘要:前端的性能对于Web应用的用户体验来说非常重要。不要以为你的Web应用的性能已经足够好了,其实还会有很多可以提升的地方。本文将介绍Google和雅虎关于前端优化的最佳实践以及工具,你可以逐一检验你的Web应用。 前端的性能对于一个Web应用来说非常重要,如果一个Web应用的页面加载速度非常快、 Read More
posted @ 2019-10-11 17:55 梓色心晴 Views(443) Comments(0) Diggs(0) Edit
Q:我用cordova开发项目,想在app内跳转外部链接,安装了cordova-plugin-inappbrowser后确实可以跳转,但是跳转的页面有个按钮,原本点击会下载app,现在点击后毫无反应,求大神解惑。 A:已经找到解决办法了,把cordova.InAppBrowser.open的打开网页 Read More
posted @ 2019-05-16 16:34 梓色心晴 Views(997) Comments(0) Diggs(0) Edit
https://github.com/ff755/vue-kindedtior-demo Read More
posted @ 2018-12-04 13:57 梓色心晴 Views(155) Comments(0) Diggs(0) Edit
https://elemefe.github.io/vue-amap/#/zh-cn/introduction/install Read More
posted @ 2018-08-09 16:34 梓色心晴 Views(607) Comments(0) Diggs(0) Edit
1.ios中设置readonly还会有光标? 在input上添加 unselectable="on" onfocus="this.blur()" 即可 2. 解决input标签在IOS浏览器中光标过长的问题 不要给input加高度,加padding撑开就行了 IE:不管该行有没有文字,光标高度与fo Read More
posted @ 2018-07-18 11:06 梓色心晴 Views(682) Comments(0) Diggs(0) Edit
初学vue的时候,不知道如何在方法中跳转界面并传参,百度过后,了解到两种方式,params 与 query。然后,错误就这么来了: router文件下index.js里面,是这么定义路由的: 我想用params来传参,是这么写的,嗯~ this.$router.push({ path:"/detai Read More
posted @ 2018-05-24 11:22 梓色心晴 Views(171) Comments(0) Diggs(0) Edit
var a=[1,2,3,5]; alert(Math.max.apply(null, a));//最大值 alert(Math.min.apply(null, a));//最小值 var a=[1,2,3,5]; alert(Math.max.apply(null, a));//最大值 alert Read More
posted @ 2018-05-17 21:02 梓色心晴 Views(168) Comments(0) Diggs(0) Edit
intoDetail(row) { var routeData = this.$router.resolve({ path: '/detail/custDetail', query: {id:123} });window.open(routeData.href);}, Read More
posted @ 2018-05-14 20:03 梓色心晴 Views(134) Comments(0) Diggs(0) Edit
很多不太懂正则的朋友,在遇到需要用正则校验数据时,往往是在网上去找很久,结果找来的还是不很符合要求。所以我最近把开发中常用的一些正则表达式整理了一下,在这里分享一下。给自己留个底,也给朋友们做个参考。校验数字的表达式 非0开头9-12位数字: ^([1-9][0-9]{8,11}|0)$ 1 数字: Read More
posted @ 2018-04-28 16:35 梓色心晴 Views(129) Comments(0) Diggs(0) Edit