angular.lowercase()

时间:2021-12-10 19:55:12
<!DOCTYPE html>
<html> <head>
<meta charset="UTF-8">
<title>angular.lowercase</title>
</head> <body ng-app="lowercaseExample">
<h1>angular.lowercase</h1>
<p>
<span>描述:</span><br />
<span>将制定的字符串转换为小写</span>
</p>
<p>
<span>使用方法:</span><br />
<span>angular.lowercase(value)</span>
</p>
<p>
<span>参数:</span><br />
<span>value:判断的值</span><br />
</p>
<p>
<span>返回值:</span><br />
<span>小写的string</span>
</p>
<hr />
<div ng-controller="lowercasecon">
<div id="test">{{vals}}</div>
</div>
</body>
<script src="../../js/angular.1.3.0.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
angular.module('lowercaseExample', []).controller('lowercasecon', function($scope) {
var val = 'aaAAbbBB';
console.log(angular.lowercase(val))
$scope.vals = angular.lowercase(val);
})
</script> </html>