编译出的lib文件里面有libdialogbox.a 和资源文件
代码如下,打印了dialog 提示 nil,这个问题怎么解决
var dialog = api.require('dialogBox'); dialog.evaluation({ styles: { bg: '#fff', w: 270, corner: 4, title: { marginT: 20, size: 16, color: '#333', bold: false }, content: { marginT: 8, color: '#666', size: 14 }, buttons: [{ marginB: 0, marginL: 0, w: 270, h: 45, bg: '#fff', color: '#FF8E3C', size: 16 }, texts: { title: title, content: content, buttons: [{text: btnTitle}] } }, function (ret, err) { if (ret) { dialog.close({ dialogName: 'evaluation' }); l_cb && l_cb(); }
});
|