<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>angular.isObject</title> </head> <body ng-app="isObjectExample"> <h1>angular.isObject</h1> <p> <span>描述:</span><br /> <span>判断参数是否是一个Object</span> </p> <p> <span>使用方法:</span><br /> <span>angular.isObject(value)</span> </p> <p> <span>参数:</span><br /> <span>value:判断的值</span><br /> </p> <p> <span>返回值:</span><br /> <span>boolean</span> </p> <hr /> <div ng-controller="isObjectcon"> <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('isObjectExample', []).controller('isObjectcon', function($scope) { var val = {}; console.log(angular.isObject(val)) $scope.vals = angular.isObject(val); }) </script> </html>