zoukankan      html  css  js  c++  java
  • pipe

    slice管道,对数组进行截取,取值范围[a,b)

    如果你数学基础还可以,[a,b)你应该知道是个什么情况
    eg:

    [1,2,3,4,5]|slice(1,3) //2,3
    [1,2,3,4,5]|slice(-3) //3,4,5
    [1,2,3,4,5]|slice(-3,-1) //3,4
    
    

    超出范围则When operating on a blank value, the pipe returns the blank value.

    date

    和angular.js使用方法一样

    json 同上

    async 见rxjs章节

    currency 返回的是$,一般不会用

    percent和number用法一样

    uppercase lowercase tittlecase

    <p>{{"XiongWei"|uppercase}}</p>
    <p>{{"XiongWei"|lowercase}}</p>
    <p>{{"XiongWei"|titlecase}}</p>
    <p>{{3.1415|number:'.2-2'}}</p>
    <p>{{0.758|percent:'.2-2'}}</p>
    <p>{{18.52|currency}}</p>
    

    You can change the world with your heart,even a lot of changes sometimes unless you won't geiv up....
  • 相关阅读:
    systemmap 使用记录
    reading code record
    吞吐问题
    debug cps 原因
    fopen的a+和rewind
    debug cps && perf debug
    tfo以及quic的阅读笔记
    ss 和netstat
    debug open files
    多核编程 local global
  • 原文地址:https://www.cnblogs.com/xiongwei2017/p/7075530.html
Copyright © 2011-2022 走看看