标签:
var app = angular.module("encodeDecode", []); app.controller("encodeDecodeCtrl", ($scope, str) => { $scope.encode = btoa(str); $scope.decode = atob(str); });
angular使用base64的encode和decode
原文地址:http://www.cnblogs.com/Jim-william/p/4475678.html