摘要:
过滤器: vue1.0 提供过滤器: 系统就自带很多过滤 capitalize uppercase currency json.... {{msg | currency}}{{msg | json}}....limitByfilterBy.....一些简单功能,自己通过js实现 debounce 配 阅读全文
摘要:
class和style: :class="" v-bind:class="" :style="" v-bind:style="" :class="[red]" red是数据 :class="[red,b,c,d]" :class="{red:a, blue:false}" :class="json" 阅读全文
摘要:
删除 当前在最后一页且只有一条数据,删除后 页码-1: 阅读全文
摘要:
vue.js https://vuejs.org/ 基础: http://cn.vuejs.org/v2/guide/installation.html 1.安装需要利用npm包管理器,所以首先安装node.js https://nodejs.org/en/download/ 安装好后,打开cmd面 阅读全文
摘要:
Angular是Google推出的Web前端开发框架,从12年发布起就受到了强烈的关注,他首次提出了双向绑定的概念,让人耳目一新。 Angular 2特性 就在2016年9月中旬,时隔4年,Google正式发布了Angular的第二代开发框架Angular 2,2017年3月推出了Angular4。 阅读全文
摘要:
一、插值表达式 基本用法与ng1一样。 可以使用 Angular 内置的 json 管道,来显示对象信息,管道用来格式化数据 import { Component } from '@angular/core'; @Component({ selector: 'app-root', template: 阅读全文
摘要:
历史: Angular是Google推出的Web前端开发框架,从12年发布起就受到了强烈的关注,他首次提出了双向绑定的概念,让人耳目一新。 Angular 2特性 就在2016年9月中旬,时隔4年,Google正式发布了Angular的第二代开发框架Angular 2,2017年3月推出了Angul 阅读全文
摘要:
不会对原数据造成影响的函数:concat()方法、slice()方法; .ect 会改变原数组的值的: push()方法、splice()方法 .ect 一。添加删除 push(): 尾部添加,返回数组 pop(): 尾部删除,返回删除项 unshift() : 头部添加,返回数组 shift() 阅读全文
摘要:
代码clone git clone git地址 //默认从master下载代码 代码提交: git status git add . //或 git add * git commit -m "<message>" git push origin <your-branch> // <your-bran 阅读全文
摘要:
比较推荐的方式是采用多视图ui-view的方式。可以将不同的tab定义为不同的ui-view。如果对ui-view的使用不了解可参考ui-router里的介绍 <div> <div ui-view="filters"></div> <div ui-view="tabledata"></div> <d 阅读全文