摘要: {{n}} 点击 添加数据 删除数据 修改数据 查询数据 阅读全文
posted @ 2019-07-08 15:59 开江鱼gty 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-07-08 15:29 开江鱼gty 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 安装mock,和案axios npm i mockjs npm i axios 后再vue组件中使用 <script>import axios from 'axios'import Mock from 'mockjs'const Random = Mock.Random; Mock.mock('ht 阅读全文
posted @ 2019-07-07 15:02 开江鱼gty 阅读(442) 评论(0) 推荐(0) 编辑
摘要: 未拦截使用使用: 由于axios每个请求都是异步.例如有ABC三个请求,C需要拿到AB请求回来的值作为参数,则需同步加载才能,所以使用axios.all才好完成.... 拦截器:为了处理axios中get(params:)和post(data:)不同..还有就是只要拿到自己想要的data, impo 阅读全文
posted @ 2019-07-07 14:48 开江鱼gty 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 脚手架 安装 npm install -g create-react-app 引入: 阅读全文
posted @ 2019-07-06 17:50 开江鱼gty 阅读(2007) 评论(0) 推荐(0) 编辑
摘要: 两种方法: 1... 打开https://www.swiper.com.cn/download/index.html 下载css,js... 把js,css引入public里面的index.html文件里.... 2,脚手架:(体会) 阅读全文
posted @ 2019-07-06 17:43 开江鱼gty 阅读(187) 评论(0) 推荐(0) 编辑
摘要: import React from 'react'; import {fetch} from 'whatwg-fetch'; // import {HashRouter as Router,Route,Redirect,Switch} from 'react-router-dom' import { Table,Input,Button,Radio,Modal} from 'antd'; im... 阅读全文
posted @ 2019-07-06 17:28 开江鱼gty 阅读(4650) 评论(0) 推荐(0) 编辑
摘要: //导入bulp插件(里面封装好了一些功能)var gulp = require("gulp"); var concat = require("gulp-concat");var cssmin = require("gulp-cssmin");var rename = require("gulp-r 阅读全文
posted @ 2019-06-25 21:34 开江鱼gty 阅读(208) 评论(0) 推荐(0) 编辑
摘要: gulp、webapck 基于nodejs的webpack 模块化,组件化开发的利器vue 集成了webpack 1、安装命令 cnpm i webpack webpack-cli -D 安装webpack-4版本 cnpm i webpack-dev-server@2 -g // 安装服务器,cn 阅读全文
posted @ 2019-06-25 21:32 开江鱼gty 阅读(165) 评论(0) 推荐(0) 编辑
摘要: //判断一个数是否是素数 function isPrime(num){ for (var i = 2; i = 48 && asc = 65 && asc = 97 && asc <= 122) ){ //根据ASCII码值获取对应的字符 var ch = String.fromCharCode(asc); //co... 阅读全文
posted @ 2019-06-25 17:49 开江鱼gty 阅读(88) 评论(0) 推荐(0) 编辑