var app = angular.module("encodeDecode", []); app.controller("encodeDecodeCtrl", ($scope, str) => { $scope.encode = btoa(str); $scope.decode = atob(str); });
时间: 2024-10-08 00:04:09
var app = angular.module("encodeDecode", []); app.controller("encodeDecodeCtrl", ($scope, str) => { $scope.encode = btoa(str); $scope.decode = atob(str); });