12 2018 档案
摘要:我搜藏别人的,占为己有 一、简介:一个用于Windows和Mac的免费Git客户端。Sourcetree简化了如何与Git存储库进行交互,这样您就可以集中精力编写代码。通过Sourcetree的简单Git GUI可视化和管理存储库。官网下载地址:Sourcetree | Free Git GUI f
阅读全文
摘要:import thirdBrowser from '@/js/third_party/browser'; import thirdWX from '@/js/third_party/wx'; import alert from '@/js/alertView'; import constant from '@/js/const'; var thirdObj; // 返回在vue模板中的调用接口...
阅读全文
摘要:logoImgUpload:function(file) { let self = this; self.formatUpload(file); let reader = new FileReader(); reader.readAsDataURL(file); reader.onload = function (e...
阅读全文
摘要:import axios from 'axios'; let env = process.env.NODE_ENV; var needLogin = ""; let root = ''; var header=''; if (env === 'development') { console.log("api"); root = ''; } else if (env === '...
阅读全文
摘要:以上是用call方法继承Array数组对象的slice方法
阅读全文
摘要:将上述文件放在js文件里 在使用的页面引入(vue) import {conService} from '../../js/contactService.js'; 调用 this.conService();
阅读全文
摘要:移动端页面开发流程 移动端页面布局 一、移动端app分类 1、Native App原生app手机应用程序 使用原生的语言开发的手机应用,Android系统用的是java,ios系统用的是object-C 2、Hybrid App 混合型app手机应用程序 混合使用原生的程序和html5页面开发的手机
阅读全文
摘要:下面是抄过来的,方便自己翻越 webpack4.x入门配置 1、首先npm install webpack webpack-cli webpack-dev-server -g (mac电脑用超级管理员的形式进行安装需要前面加上sudo,Windows 电脑不用加sudo) image.png 1.1
阅读全文
摘要:什么是RequireJs RequireJS 是一个JavaScript模块加载器。 在ES6出现之前,JS不像其他语言同样拥有“模块”这一概念,于是为了支持JS模块化,出现了各种各样的语言工具,如webpack,如ReuqireJS。 为什么使用RequireJS · 模块化:模块化就是将不同功能
阅读全文
摘要:控制多个过渡效果 innerHTML、innerText和outerHTML、outerText的区别 简单的说innerHTML和outerHTML、innerText与outerText的不同之处在于: 1)、innerHTML与outerHTML在设置对象的内容时包含的HTML会被解析,而in
阅读全文
摘要:将其在vue目录中用一个js文件存起来,哪个页面需要弹窗时引入 import eduAlert from '@/js/alert.js' 在方法中就可以使用了 alertmethos(){ // eduAlert.showAlert("我很好的的哈哈",null,true); // eduAlert
阅读全文
摘要:{ path: '/Index1', name: 'Index', component: () => import ('@/components/Index.vue') }, { path: '/Index1', name: 'Index', component: () => import ('@/
阅读全文
摘要:html{ font-size:10vw; } html{ font-size:10vw; }
阅读全文
摘要:ES6 Promise 用法讲解 Promise是一个构造函数,自己身上有all、reject、resolve这几个眼熟的方法,原型上有then、catch等同样很眼熟的方法。 那就new一个 var p = new Promise(function(resolve, reject){ //做一些异
阅读全文
摘要:题目:编写函数 array_diff(a,b),传入两个数组a,b,将数组a中包含b的值全部去掉,重复的也去掉,返回去掉之后新数组 function array_diff(a, b) { return a.filter(e => !b.includes(e));} ex: array_diff([1
阅读全文