DevExtreme的DxView页面如何跳转
Application6.home = function (params) {"use strict";
var viewModel = {
LoginClick: function () {
var name = $("#Name").dxTextBox("option", "value");
var pwd = $("#Password").dxTextBox("option", "value");
if (name != "" && pwd != "") {
if (name == "admin") {
if (pwd == "123456") {
//跳转页面
} else {
alert("密码错误!");
}
}
else {
alert("用户不存在!");
}
} else {
alert("请将用户名和密码填写完整!")
}
}
};
return viewModel;
};
页:
[1]