摘要: 废话不多说,直接上代码。 imgView.Vue // 文件 <template> <div class="detail"> <div class="naveBar" :class="{inApp:isIeltsbro}"> <div class="leftBtn" @click="handleCl 阅读全文
posted @ 2020-10-16 15:43 wangshiqiao 阅读(458) 评论(0) 推荐(0)
摘要: 目录结构如下 --store --modules --one.js --two.js --three.js index.js 直接上代码: // one.js 文件 import http from '$path' // 引入请求方法 const state = { name: null, age: 阅读全文
posted @ 2020-10-15 17:58 wangshiqiao 阅读(108) 评论(0) 推荐(0)
摘要: 目录 global.less @import "./variable"; * { -webkit-tap-highlight-color: transparent; tap-highlight-color: transparent; -webkit-font-smoothing: antialias 阅读全文
posted @ 2020-09-30 14:58 wangshiqiao 阅读(957) 评论(0) 推荐(0)
摘要: 文件 util.js /** * 实现字符串按照长度截取 * @param str [string] * @returns len [number] * get string length ,include letter、number、symbol and Chinese Word. a Chine 阅读全文
posted @ 2020-09-30 11:10 wangshiqiao 阅读(245) 评论(0) 推荐(0)
摘要: npm install axios 文件 request.js import axios from "axios" import config from './config' axios.defaults.timeout = 20 * 1000 axios.interceptors.request. 阅读全文
posted @ 2020-09-29 11:32 wangshiqiao 阅读(1212) 评论(0) 推荐(0)
摘要: exports require module 阅读全文
posted @ 2017-04-26 18:25 wangshiqiao 阅读(141) 评论(0) 推荐(0)
摘要: var f = /@/g; var src="2876110865@qq.com" console.log(src.match(f)); new RegExp(pattern/attributes); attribute:g(执行全局搜索,直到搜索完毕才结束) m(多行匹配) i(大小写不敏感) 匹 阅读全文
posted @ 2017-04-17 14:10 wangshiqiao 阅读(175) 评论(0) 推荐(0)
摘要: js核心知识总结: 基本类型: number boolean undefined string 1.一切都是对象,对象是属性的集合。引用类型都是对象(array、null、function()、集合、) 2。值类型用typeof来判断,引用类型用instanceof来判断 3.对象都是由函数来创建的 阅读全文
posted @ 2017-04-10 16:28 wangshiqiao 阅读(197) 评论(0) 推荐(0)