UUID 產生器 -> cbcfd6e5-bbde-44b2-8fc4-2c3ccc2ae0c6
<script src="angular.uuid2.js"></script> var app = angular.module('app',['angularUUID2']); app.controller('uuidCtrl', ['$scope','uuid2', function($scope, uuid2){ $scope.getId = function(){ return uuid2.newuuid(); } }])