若是你數學基礎還能夠,[a,b)你應該知道是個什麼狀況
eg:json
[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.數組
和angular.js使用方法同樣async
<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>