We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
单页面应用
前端:你要懂的单页面应用和多页面应用 单页面应用:只有一张Web页面的应用,是一种从Web服务器加载的富客户端,单页面跳转仅刷新局部资源 ,公共资源(js、css等)仅需加载一次,常用于PC端官网、购物等网站
前端:你要懂的单页面应用和多页面应用
单页面应用:只有一张Web页面的应用,是一种从Web服务器加载的富客户端,单页面跳转仅刷新局部资源 ,公共资源(js、css等)仅需加载一次,常用于PC端官网、购物等网站
e.g.1:基础vue实例,传入el和data选项,vue内部会把data数据填充到el指向的模板上,并把模板渲染到浏览器。
el
data
e.g.2:使用了render选项和$mount方法,render方法接收一个参数h(),h函数创建了虚拟DOM,而$mount把虚拟DOM转换为真实DOM,渲染到浏览器。
render
$mount
h()
两者运行有区别
语法
{{data}}
v-html
概念
报告: this.$router this.$route是当前的路由信息,没有push、back等方法 this.$router可以通过currentRoute获取到当前路由对象中信息,e.g:path、parm as、query等 router-link组件的exact-active-class用来设置地址精确匹配的元素的样式
报告:
this.$router
this.$route是当前的路由信息,没有push、back等方法
this.$router可以通过currentRoute获取到当前路由对象中信息,e.g:path、parm as、query等
currentRoute
exact-active-class
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Vue.js框架基础回顾
单页面应用
的基础Vue基础结构
e.g.1:基础vue实例,传入
el
和data
选项,vue内部会把data数据填充到el指向的模板上,并把模板渲染到浏览器。e.g.2:使用了
render
选项和$mount
方法,render方法接收一个参数h()
,h函数创建了虚拟DOM,而$mount把虚拟DOM转换为真实DOM,渲染到浏览器。两者运行有区别
Vue的生命周期
Vue.js语法和概念
语法
{{data}}
中成员显示在模板的任何位置,内容中有html字符串,会把内容解析为普通文本,html的内容会被转义,可以使用v-html
指令概念
The text was updated successfully, but these errors were encountered: