alertify.alert 在秘银 (m.request) 响应中不起作用
alertify.alert doesnt work in mithril (m.request) response
我正在做一个项目,我在响应中使用 mithril.js and also using alertify.js 我想提醒一些数据它不起作用,如果我在 m.request 之前使用相同的警报它工作正常
function send_data()
{
m.request({
method: "GET",
url: url_root,
config: xhrConfig
}).then(
function(response) {
alertify.alert("test");
});
}
send_data();
复制并粘贴我在 the Github issue you raised for Mithril 上给你的答案:
Works for me using alertify 3.11。 v0.5rc1 甚至无法在不中断的情况下执行 ('alertify is undefined')。您遇到什么问题?
我正在做一个项目,我在响应中使用 mithril.js and also using alertify.js 我想提醒一些数据它不起作用,如果我在 m.request 之前使用相同的警报它工作正常
function send_data()
{
m.request({
method: "GET",
url: url_root,
config: xhrConfig
}).then(
function(response) {
alertify.alert("test");
});
}
send_data();
复制并粘贴我在 the Github issue you raised for Mithril 上给你的答案:
Works for me using alertify 3.11。 v0.5rc1 甚至无法在不中断的情况下执行 ('alertify is undefined')。您遇到什么问题?