firekyrin / es6-experience Goto Github PK
View Code? Open in Web Editor NEWThis is my test repo for my experince.
This is my test repo for my experince.
Q:vue中ready()改变data()中的数值,没有起作用。
A:看的出来你使用的是vue2.0版本,vue2.0中一个vue实例的生命周期中已经不存在ready()了。你还停留在vue1.0中使用ready的阶段。试着转换为mounted。
如果只使用Apache做HTTP服务器,可以设置Apache的url重定向,将所有的请求路由到index.html
打开~\Apache\conf\httpd.conf文件
去除httpd.conf文件中LoadModule rewrite_module modules/mod_rewrite.so前面的#号
在httpd.conf文件中添加重定向规则
RewriteEngine on
# 当访问路由地址为 /live 开头的,则将路由重定向到 /index.html
RewriteRule \/live.*$ /index.html
<script>
import Hello from './components/Hello'
import World from './components/World'
export default {
//name: 'app1',
components: {
Hello,
World
}
}
</script>
脚本中的name取啥名字都无所谓,有没有name也无所谓。
解决方案:
https://segmentfault.com/q/1010000005806755?_ea=908999
0.17.2版本的http-proxy-middleware已经废弃proxyTable接口,参考:
https://github.com/chimurai/http-proxy-middleware
https://www.npmjs.com/package/http-proxy-middleware
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.