传入播放路径,进行音频播放
url是传入的播放内容路径
function scanedError(url){
//提示鸣生switch ( plus.os.name ) { //判断设备类型
case "iOS":
//indexOF()字符串查找从左向右查找,lastindexOf()从右向左查找
if ( plus.device.model.indexOf("iPhone") >= 0 ) { //判断是否为iPhone
plus.device.beep();
console.log = "设备蜂鸣中...";
} else {
console.log = "此设备不支持蜂鸣";
}
break; <