code is as follows:
$(".password").on("keydown", function(e) {
if (e.keyCode === 13 && !e.ctrlKey) {
e.preventDefault();
$(".loading-btn").click(denlu());
}
})
$(".loading-btn").click(function(){denlu()});
if $(".loading-btn") .click (function () {denlu ()}); written as $(".loading-btn") .click (denlu ()); page refresh will be performed directly, but not in $(".password"). On ("keydown", function (e) {}). Why? Please advise Thanks ()