【文件属性】:
文件名称:ng-string:用于字符串操作的角度模块。 封装了很棒的 string.js 库
文件大小:208KB
文件格式:ZIP
更新时间:2021-07-24 11:45:30
JavaScript
ng-string
一个工厂和一组封装了很棒的的过滤器。
带有一个名为string的工厂:
myApp = angular . module ( 'myapp' , [ 'string' ] ) ;
function AwesomeCtrl ( $scope , string ) {
string ( 'foobar' ) . chompLeft ( 'foo' ) . s ; // 'bar'
}
...和一组匹配 string.js 操作的过滤器:
{{mystring = 'this is a string'}}
{{mystring|stringCamelize}} becomes 'thisIsAString'
{{mystring|stringCapitalize}} becomes 'This is a string'
{{mystring|stringCho
【文件预览】:
ng-string-master
----.gitignore(27B)
----README.md(799B)
----ng-string.js(27KB)
----bower.json(207B)
----package.json(1KB)
----src()
--------index.coffee(1KB)
----ng-string.min.js(17KB)
----spec()
--------karma.config.coffee(2KB)
--------angular.js(700KB)
--------string_factory.spec.coffee(210B)
--------angular-mocks.js(66KB)
--------string_filters.spec.coffee(338B)
----lib()
--------index.js(2KB)