取得 UUID

1 篇文章 / 0 new
author
取得 UUID
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();
    }
}])
Free Web Hosting