<!DOCTYPE html>
<html>
<head>
<Meta charset="UTF-8">
<title></title>
<script type="text/javascript" src="js/angular.min.js" ></script>
</head>
<body>
<div id="" ng-app="hd" ng-controller="ctrl">
</div>
<script> var m=angular.module("hd",[]); m.controller("ctrl",["$scope",function($scope){ var variable; console.log(angular.isUndefined(variable)) var numParam=90; console.log(angular.isNumber(numParam)); var strParam="str is string"; console.log(angular.isstring(strParam)); var objParam={}; console.log(angular.isObject(objParam)); var script=document.getElementsByTagName('script').item(0); console.log(angular.isElement(script)); obj1={name:"张三"}; obj2={name:"张三"} console.log(angular.equals(obj1,obj2)); }]); </script>
</body>
</html>