Vue todos示例 在class中的应用表达式
作者: thtomatic 分类: Vue 评论: [ 0 ] 条 浏览: [ 743 ] 次
本篇博客用到了v-if,v-on,v-for三个没有写到的知识点,以后会详细写三篇博客,详细写这三个方法的用处
直接上代码:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>vue.js 使用数组和对... Vue 使用数组和对象控制Class
作者: thtomatic 分类: Vue 评论: [ 0 ] 条 浏览: [ 1071 ] 次
直接上代码:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>vue.js 使用数组和对象控制Class </title>
<script src="vue.js">&l... vue 使用watch监听实现类似百度搜索功能
作者: thtomatic 分类: Vue 评论: [ 0 ] 条 浏览: [ 900 ] 次
watch监听方法,watch可以监听多个变量,具体使用方法看代码:
HTML:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>vue.js 使用watch监听实现类似百度搜索功能 </ti... Vue 使用comouted计算属性
作者: thtomatic 分类: Vue 评论: [ 0 ] 条 浏览: [ 1353 ] 次
computed计算属性
使用方法见代码:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>vue.js 使用comouted计算属性 </title>
<script s... vue 使用JavaScript表达式
作者: thtomatic 分类: Vue 评论: [ 0 ] 条 浏览: [ 735 ] 次
vue使用JavaScript的运算方式
代码如下:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>vue.js 使用 v-text 和 v-html </title>
<... vue.js 使用 v-text 和 v-html
作者: thtomatic 分类: Vue 评论: [ 0 ] 条 浏览: [ 814 ] 次
v-text:转义输出
v-html:不转义输出
值得一说的是 如果直接使用{{html}}的话会直接转义
看代码:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>vue.js 使用...
vue.js 使用v-model v-once
作者: thtomatic 分类: Vue 评论: [ 0 ] 条 浏览: [ 880 ] 次
v-model 双向绑定
v-once 单项绑定
代码:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>vue.js 使用v-model v-once</title>
<script ...
vue.js操作元素属性
作者: thtomatic 分类: Vue 评论: [ 0 ] 条 浏览: [ 795 ] 次
vue动态操作div的class
看代码:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>vue.js操作元素属性</title>
<script src="vue.j...