toOutLink(item){
let str = item.VIDEO_URL.replace(/^\s+|\s+$/g, "");
if (str.slice(0, 4) === 'http') {
//#ifdef H5
window.location.href = str
//#endif
// #ifdef APP-PLUS
plus.runtime.openURL(str, function(res) {
console.log(res);
});
//#endif
}
}
如果是H5端 就用window.location.href 跳转
如果是在APP端就使用plus.runtime.openURL(‘链接地址’,‘回调函数function(res){}’)