答案 0 :(得分:1)
我有同样的问题,我不得不将mongo更新为3.6,使用
停止mongod服务$ mongod
并在终端中运行mongod并将其保持打开状态。
$ sudo service mongod start
下次它似乎认出了由命令启动的mongo服务
function showAlert() {
var container = document.getElementById("alertContainer");
var overlay = document.getElementById("alertOverlay");
if (container.style.display === "block") {
container.style.display = "none";
overlay.style.display = "none";
} else {
container.style.display = "block";
overlay.style.display = "block";
}
}
function alert(text) {
showAlert();
$(alertHeader).html("Alert!");
$(alertHeader).css('text-align', 'center');
$(alertText).html(text);
$(alertText).css('text-align', 'center');
}
function confirm(text) {
showAlert();
$(alertHeader).html("Confirm");
$(alertHeader).css('text-align', 'center');
$(alertText).html(text);
$(alertText).css('text-align', 'center');
return true; //does not wait for user input just confirms and runs the code
}
function commitRow(btn) {
if (confirm("Are you sure you would like to commit this row?")) {
//does stuff
}
}
答案 1 :(得分:0)