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();
};
}
感谢您的回答。但你可以做一些演示吗? –