0
這是我要添加密碼保護,當我點擊「編輯標題」我的例子hereAngular.js編輯與密碼
。
我該怎麼辦?
JS代碼:
function ClickToEditCtrl($scope) {
$scope.title = "Welcome to this demo!";
$scope.editorEnabled = false;
$scope.enableEditor = function() {
$scope.editorEnabled = true;
$scope.editableTitle = $scope.title;
};
$scope.disableEditor = function() {
$scope.editorEnabled = false;
};
$scope.save = function() {
$scope.title = $scope.editableTitle;
$scope.disableEditor();
};
}
感謝您的回答。但你可以做一些演示嗎? –