This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
(function($, window) {
/**
* 确认消息框
*/
$.confirm = function(message, title, btnArray, callback) {
if ($.os.plus) {
if (typeof message === 'undefined') {
return;
} else {
if (typeof title === 'function') {
callback = title;
title = null;
btnArray = null;
} else if (typeof btnArray === 'function') {
callback = btnArray;
}
$.plusReady(function() {
plus.nativeUI.confirm(message, callback, title, btnArray);
});
//H5版本,0为确认,1为取消
if (window.confirm(message)) {
callback({
index: 0
index: 1
};
})(mui, window);