会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
沙滩多啦图
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2018年4月27日
交集,切割数组
摘要: let cartIds = [] // 定义选中的购物车id this.result.forEach(item = { cartIds.push(item.cartId) }) test = this.cartList.filter((item, index) = { return cartIds.
阅读全文
posted @ 2018-04-27 10:11 沙滩多啦图
阅读(163)
评论(0)
推荐(0)
2018年3月21日
懒加载页面的路由配置
摘要: import Vue from 'vue' import Router from 'vue router' import goodsDetailOwn from '@/pages/goodsDetailOwn' import goodsDetailAgent from '@/pages/goodsD
阅读全文
posted @ 2018-03-21 14:53 沙滩多啦图
阅读(418)
评论(0)
推荐(0)
2018年3月20日
遇到的难点
摘要: 1.安全性问题 脚本注入 csrf 2.跨域问题 jsonp cors 服务器代理 3。单页面加载,进行路由懒加载 4,每单个vue全局方法设置的同一个,app端同时存在两个webview,导致不同vue文件的相同命名方法被调用了惨遭vcbgetTkUid(因为ajax异步操作,获取的值就会错开,应
阅读全文
posted @ 2018-03-20 14:21 沙滩多啦图
阅读(173)
评论(0)
推荐(0)
2018年3月11日
jsonp
摘要: json的原理其实很简单,只要保证script标签加载的是一个合法的js代码文件即可。 let url = '' let script = document.createElement('script') script.setAttribute('src', url) document.getEle
阅读全文
posted @ 2018-03-11 19:22 沙滩多啦图
阅读(102)
评论(0)
推荐(0)
2018年3月1日
nginx
摘要: 查看文件的权限ls l sudo nginx s stop sudo nginx s reload sudo nginx
阅读全文
posted @ 2018-03-01 23:52 沙滩多啦图
阅读(106)
评论(0)
推荐(0)
2018年2月2日
js取整
摘要: js中对小数取整的函数,需要的朋友可以参考下。 1.丢弃小数部分,保留整数部分 js:parseInt(7/2) 2.向上取整,有小数就整数部分加1 js: Math.ceil(7/2) 3,四舍五入. js: Math.round(7/2) 4,向下取整 js: Math.floor(7/2)
阅读全文
posted @ 2018-02-02 12:11 沙滩多啦图
阅读(129)
评论(0)
推荐(0)
2018年1月30日
webpack打包
摘要: "start": "webpack", "server": "npm run start & webpack dev server open",
阅读全文
posted @ 2018-01-30 12:00 沙滩多啦图
阅读(103)
评论(0)
推荐(0)
2018年1月29日
支付宝支付
摘要: $('.content').after(result.data.signed_result) $(' alipaysubmit').submit();
阅读全文
posted @ 2018-01-29 14:31 沙滩多啦图
阅读(89)
评论(0)
推荐(0)
2018年1月25日
input ios问题
摘要: 1. 移动端中 a,button,input,optgroup,select,textarea 等标签点击的时候会有一层蓝色或者白色块状背景,看的好恶心,我们可以用 CSS 来解决这个问题: a,button,input,optgroup,select,textarea { webkit tap h
阅读全文
posted @ 2018-01-25 16:13 沙滩多啦图
阅读(89)
评论(0)
推荐(0)
2018年1月23日
移动端输入框 回车键会搜索
摘要: </form js回车 $(' dataInput').bind('keypress', function (event) { if (event.keyCode == "13") { window.location.href = "search.html?search=" + $(' dataIn
阅读全文
posted @ 2018-01-23 14:38 沙滩多啦图
阅读(472)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告