欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Angular使用過濾器uppercase/lowercase實(shí)現(xiàn)字母大小寫轉(zhuǎn)換功能示例

 更新時間:2018年03月27日 11:41:44   作者:郭浩326  
這篇文章主要介紹了Angular使用過濾器uppercase/lowercase實(shí)現(xiàn)字母大小寫轉(zhuǎn)換功能,涉及AngularJS過濾器針對字符串轉(zhuǎn)換的簡單使用技巧,需要的朋友可以參考下

本文實(shí)例講述了Angular使用過濾器uppercase/lowercase實(shí)現(xiàn)字母大小寫轉(zhuǎn)換功能。分享給大家供大家參考,具體如下:

<!DOCTYPE html>
<html ng-app="myApp">
<head>
<meta charset="UTF-8">
<title>www.dbjr.com.cn angular過濾器uppercase/lowercase字母大小寫轉(zhuǎn)換</title>
<script src="angular.min.js"></script>
</head>
<body ng-controller="my">
<span ng-bind="name"></span>
<span ng-bind="name | uppercase"></span> 輸出大寫
<span ng-bind="name |lowercase"></span>輸出小寫
</body>
<script type="text/javascript">
var app=angular.module("myApp",[]);
app.controller("my",["$scope",function($scope){
$scope.name="Jaay";
}])
</script>
</html>

運(yùn)行結(jié)果:

PS:這里再為大家推薦幾款相似的在線工具供大家參考:

在線字母大小寫轉(zhuǎn)換工具:http://tools.jb51.net/transcoding/upper

人民幣大寫在線轉(zhuǎn)換工具:http://tools.jb51.net/zhuanhuanqi/rmbupper

更多關(guān)于AngularJS相關(guān)內(nèi)容感興趣的讀者可查看本站專題:《AngularJS指令操作技巧總結(jié)》、《AngularJS入門與進(jìn)階教程》及《AngularJS MVC架構(gòu)總結(jié)

希望本文所述對大家AngularJS程序設(shè)計有所幫助。

相關(guān)文章

最新評論