标签:[] log rip har type div span value script
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>angular.isString</title> </head> <body ng-app="isStringExample"> <h1>angular.isString</h1> <p> <span>描述:</span><br /> <span>判断参数是否是一个String</span> </p> <p> <span>使用方法:</span><br /> <span>angular.isString(value)</span> </p> <p> <span>参数:</span><br /> <span>value:判断的值</span><br /> </p> <p> <span>返回值:</span><br /> <span>boolean</span> </p> <hr /> <div ng-controller="isStringcon"> <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(‘isStringExample‘, []).controller(‘isStringcon‘, function($scope) { var val = ‘[]‘; console.log(angular.isString(val)) $scope.vals = angular.isString(val); }) </script> </html>
标签:[] log rip har type div span value script
原文地址:https://www.cnblogs.com/tanxiang6690/p/9766853.html