Comments (6)
需要配置webpack里的devServer,具体细节用法你最好系统的学习一下
from react_home.
对,我就是把devServer的地址换成http://www.phonegap100.com/appapi.php?
tui那页参数改成a:'getPortalList',catid:'20',但是会404.
把actions里的get方法改成getData也还是不行,但是默认qq那个接口就可以
from react_home.
这个你可以百度搜一下“webpack-dev-server跨域”找找相关的教程,搞清楚原理,我这里不一定能帮你解释清楚
from react_home.
好的,谢谢
from react_home.
确实是webpack-dev-server设置的地方写错了,已成功,谢谢
from react_home.
恩恩
from react_home.
Related Issues (20)
- 如何能用本机ip启动程序呢. HOT 1
- 开启host之后,本地图片怎么添加呢 HOT 1
- router4是不没有Router了 HOT 1
- yarn 出错 HOT 3
- npm start报错 HOT 1
- npm start报错 HOT 1
- 不是很好用 HOT 1
- clean命令报错
- npm start报错
- antd按需加载无效
- 其他的,我都觉得挺好的,就是一个问题,请教一下。 HOT 3
- node-sass版本过低 HOT 1
- 脚手架之前用 redux 时候的一些问题。 HOT 4
- install 时卡在 node lib/install.js HOT 2
- node 9 未知错误 HOT 2
- 没有详情页面吗? HOT 1
- 部署上线白屏 HOT 2
- 为什么我这里运行不起来呢? HOT 1
- 再请教下,antd换antd-mobile的问题 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react_home.