最佳答案
api.alert({
title: 'testtitle',
msg: 'testmsg',
}, function(ret, err) {
});
查看是不是title跟msg传入的参数为空。
其次查看控制台是否出现报错,是否api.alert未执行在apiready初始化后