博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
angularjs1-过滤器
阅读量:6932 次
发布时间:2019-06-27

本文共 2063 字,大约阅读时间需要 6 分钟。

在输入框中尝试输入:

姓名:

{
{firstName | uppercase }} {
{lastName}} {
{price | currency}}
{
{json | json }}
{
{ 1304375948024 | date:"yyyy-MM-dd hh:mm:ss" }}
{
{ 1.234567 | number:1 }}
{
{ 250 | currency:"RMB ¥ " }}
{
{ "i love tank" | limitTo:6 }}
{
{ "i love tank" | limitTo:-6 }}
{
{ [{"age": 20,"id": 10,"name": "iphone"}, {"age": 12,"id": 11,"name": "sunm xing"}, {"age": 44,"id": 12,"name": "test abc"} ] | orderBy:'id':true }}
{
{ [{"age": 20,"id": 10,"name": "iphone"}, {"age": 12,"id": 11,"name": "sunm xing"}, {"age": 44,"id": 12,"name": "test abc"} ] | orderBy:'id' }}
  • 姓名:{
    {p.name}} 年龄:{
    {p.age}}

循环对象:

  • {
    { x.name + ', ' + x.country }}

输入过滤:

  • {
    { (x.name | uppercase) + ', ' + x.country }}

name筛选:

  • {
    { (x.name | uppercase) + ', ' + x.country }}
{
{ [{"age": 20,"id": 10,"name": "iphone"}, {"age": 12,"id": 11,"name": "sunm"}, {"age": 44,"id": 12,"name": "test abc"} ] | filter:{'name':'sunm'} }}
//引入文件
{
{name | rHello}}
{
{name | rHello:3:5}}
{
{name | rJs}}

 

转载地址:http://iumjl.baihongyu.com/

你可能感兴趣的文章
canvas-tangram.html
查看>>
sqlserver存储过程如何调用自定义函数
查看>>
red gate | sql CI
查看>>
blend
查看>>
[UOJ409]Highway Tolls
查看>>
[CF414E]Mashmokh's Designed Problem
查看>>
OpenSSL中关于RSA_new和RSA_free的内存泄漏
查看>>
c#中获取服务器IP,客户端IP以及Request.ServerVariables详细说明
查看>>
Centos6.5快速配置可用网卡
查看>>
mvc框架模式
查看>>
vc 串口精灵软件分析
查看>>
C#结构体和字节数组的转换
查看>>
使用Node.js搭建静态资源服务器
查看>>
bluetooth service uuid
查看>>
Android组件安全
查看>>
DOM节点属性
查看>>
Eclipse对printf()不能输出到控制台的解决方法
查看>>
【转】Open Live Writer 插件更新
查看>>
Spring Security验证流程剖析及自定义验证方法
查看>>
单链表的创建,查找,删除,插入。
查看>>