- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 react-router(4.2) 路由嵌套传参
1、app.js import React, { Component } from 'react'; import './App.css'; import {Router , Route ,Switch} from 'react-router-dom' import history from './history'; import Portal from './components/Port...
2018-05-25 16:04:58 1134
原创 react 路由传参(react-router-dom^4)
react 路由传参 方式 一: 通过params 1.路由表中 <Route path=' /test/:id ' component={test}></Route> 2.Link处 HTML方式 ...
2018-05-25 15:42:01 4503 1
原创 js canvas 动态生成图片,以及将base64转换成file对象
export default class DrawIamge { // 随机生成RGBA颜色 randomRgbaColor (min, max) { let r = min + Math.round(Math.random() * 1000) % (max - min) // 随机生成256以内r值 let g = min + Math.round(Math.random...
2018-05-12 00:16:16 10723
翻译 angular.js 路由及页面传参( 收藏)
页面传参数方法:1、$rootScope。2、(url)/user/:name/:age。 页面转换方法:1、href="#/"。2、$state.go。3、$location.path。4、ui-sref (1)自带路由ngRoute <html> <head> <meta charset="utf-8"> ...
2018-05-03 13:58:29 299
webpack搭建的一个vue项目模板
2018-08-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人