伊人怎会持宠而骄
希望有人懂你的低头不语、小心翼翼守护你的孩子气
摘要: 1、修改config文件夹里的dev.env.js里的BASE_API,把地址改成请求后端的公共部分 1 BASE_API: '"http://192.168.xx.xx"', 1 BASE_API: '"http://192.168.xx.xx"', 1 BASE_API: '"http://19 阅读全文
posted @ 2019-02-27 11:57 伊人怎会持宠而骄 阅读(2620) 评论(0) 推荐(1) 编辑
摘要: // router.jsimport Vue from 'vue'import VueRouter from 'vue-router' Vue.use(VueRouter) const routes = [ { path: '/', component: require('./views/Home' 阅读全文
posted @ 2019-02-27 11:48 伊人怎会持宠而骄 阅读(535) 评论(0) 推荐(0) 编辑
摘要: 登录注册页面都分为上下两个部分,其中上部是logo,下部分是输入框,所以抽离出来三个组件 logo import React from 'react'import logoImg from './job.png'import './logo.css' class Logo extends React 阅读全文
posted @ 2019-02-27 11:44 伊人怎会持宠而骄 阅读(4035) 评论(0) 推荐(0) 编辑
摘要: 1、首先创建 这几个文件 myths-Mac:JdApp myth$ yarn add react-native-tab-navigator 2、各个文件完整代码 1)CartPage.js import React, { Component } from 'react';import { Styl 阅读全文
posted @ 2019-02-27 11:38 伊人怎会持宠而骄 阅读(1081) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html> <head> <meta charset="UTF-8" /> <title>React</title> <script src="https://unpkg.com/react@15.3.2/dist/react.js"></script> <scrip 阅读全文
posted @ 2019-02-27 11:23 伊人怎会持宠而骄 阅读(76) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html> <head> <meta charset="UTF-8" /> <title>React</title> <script src="https://unpkg.com/react@15.3.2/dist/react.js"></script> <scrip 阅读全文
posted @ 2019-02-27 11:23 伊人怎会持宠而骄 阅读(91) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html> <head> <meta charset="UTF-8" /> <title>Hello React</title> <script src="https://unpkg.com/react@15.3.2/dist/react.js"></script> 阅读全文
posted @ 2019-02-27 11:22 伊人怎会持宠而骄 阅读(816) 评论(0) 推荐(0) 编辑
摘要: import React, { Component } from 'react'; import {Tabs} from './Tabs' import 'whatwg-fetch' import '../assets/css/Tab3.css' import {Link} from 'react- 阅读全文
posted @ 2019-02-27 11:20 伊人怎会持宠而骄 阅读(298) 评论(0) 推荐(0) 编辑
摘要: ...this.state = { // 全部数据 addressJobs: [ { address: '北京', jobs: ['北京职位1', '北京职位2', '北京职位3', '北京职位4', '北京职位5', '北京职位6', '北京职位7', '北京职位8', '北京职位9'] }, { 阅读全文
posted @ 2019-02-27 11:19 伊人怎会持宠而骄 阅读(547) 评论(0) 推荐(0) 编辑
摘要: <div class="navigation"> //这里是通过循环遍历出来的数据,你需要根据index的值来判断你现在点击的是第几个tab栏导航,同时在js中写一个navChange的方法来把index 传递到就js中来改变tabIndex(这是在初始化时设置的默认index)的值 <span v 阅读全文
posted @ 2019-02-27 11:17 伊人怎会持宠而骄 阅读(1356) 评论(0) 推荐(0) 编辑
摘要: <template> <div class="container"> <div class="checkout-title"> <span>购物车</span> </div> <table class="product_table"> <tbody> <template v-for="(list,i 阅读全文
posted @ 2019-02-27 11:16 伊人怎会持宠而骄 阅读(531) 评论(0) 推荐(0) 编辑