//the js code
var app = angular.module('myApp', []);
app.controller('myCtrl', function($scope) {
$scope.val_2 = false;
$scope.val_1 = false;
$scope.myfun = function () {
$scope.val_1 = true;
$scope.val_2 = true;
history.pushState("","","new");
}
window.addEventListener('popstate',function()
{
$scope.val_2 = false;
$scope.val_1 = false;
});
});
在python 3.6中
我试图连接到数据库,我收到此错误, UnicodeDecodeError:'utf8'编解码器无法解码