摘要: npm i multiparty --save 文档地址 https://github.com/expressjs/node-multiparty npm i images --save 文档地址 https://github.com/aheckmann/gm var multiparty = require('multiparty'); ... 阅读全文
posted @ 2018-06-23 14:11 印度阿铭 阅读(813) 评论(0) 推荐(0) 编辑
摘要: 1 var c = [1, 8, 3, 4, 5] 2 3 every 如果 返回 false 停止循环 不会改变原数组 4 c.every(function(v, i,arr) { 5 if(v=5){ 16 console.log(v) 17 ... 阅读全文
posted @ 2018-06-23 14:06 印度阿铭 阅读(656) 评论(0) 推荐(0) 编辑
摘要: var vm = new Vue({ el: "#app", data: { name: "苹果", price: 10, num: 1 }, components:{ "goods":goods } }); var goods = { template: "<div><p>名字:{{name}}< 阅读全文
posted @ 2018-06-23 14:03 印度阿铭 阅读(8219) 评论(0) 推荐(0) 编辑
摘要: 用delimiters替代{{}} <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale 阅读全文
posted @ 2018-06-23 13:58 印度阿铭 阅读(1037) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html> <head><meta charset="UTF-8"><title></title><link rel="stylesheet" type="text/css" href="css/animate.css" /><style type="text/css 阅读全文
posted @ 2018-06-23 13:54 印度阿铭 阅读(2846) 评论(0) 推荐(0) 编辑
摘要: 今天公司app ios版内测,发现select在安卓和ios上样式不统一,并且不好修改,一气之下放弃使用select,手写了一个用div模仿select的模块 话不多说上代码 //样式 .zezhao { width: 100%; height: 800px; background-color: r 阅读全文
posted @ 2018-06-23 13:44 印度阿铭 阅读(240) 评论(0) 推荐(0) 编辑
摘要: Javascript: 网页可见区域宽: document.body.clientWidth网页可见区域高: document.body.clientHeight网页可见区域宽: document.body.offsetWidth (包括边线的宽)网页可见区域高: document.body.off 阅读全文
posted @ 2018-06-23 13:40 印度阿铭 阅读(3352) 评论(0) 推荐(0) 编辑
摘要: div 加滚动条的两种方法: 一、 <div style=" overflow:scroll; width:400px; height:400px;”></div> 记住宽和高一定要设置噢,否则不成的 不过在不超出时,会有下面的滚动条,所以不是最好的选择 二、 <div style=" overfl 阅读全文
posted @ 2018-06-23 13:39 印度阿铭 阅读(603) 评论(0) 推荐(0) 编辑
摘要: 只需在头部加上一句 <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1"/> 阅读全文
posted @ 2018-06-23 13:38 印度阿铭 阅读(2361) 评论(0) 推荐(0) 编辑