Git Product home page Git Product logo

es6-experience's People

Contributors

firekyrin avatar

Stargazers

 avatar

Watchers

 avatar

es6-experience's Issues

vue中的ready()没起作用

Q:vue中ready()改变data()中的数值,没有起作用。

A:看的出来你使用的是vue2.0版本,vue2.0中一个vue实例的生命周期中已经不存在ready()了。你还停留在vue1.0中使用ready的阶段。试着转换为mounted。

vue.js单页移动应用服务端部署方法

Apache部署

如果只使用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

参考

脚本中的name

<script>
import Hello from './components/Hello'
import World from './components/World'

export default {
  //name: 'app1',
  components: {
    Hello,
    World
  }
}
</script>

脚本中的name取啥名字都无所谓,有没有name也无所谓。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.