" launch-external="yes"/> " launch-external="yes"/> " launc。关于angularJs发送短信出现|关于angularJs发送短信出现 unsafe:sms:。" />

关于angularJs发送短信出现|关于angularJs发送短信出现 unsafe:sms:

打电话
发短信
js
window.location.href="https://www.it610.com/article/sms:"+ mobile;
如果短信不能发送的话,在config.xml 中看看是否有
" launch-external="yes"/>
" launch-external="yes"/>
" launch-external="yes"/>
" launch-external="yes"/>

还是不能发送的话,看看控制器里是不是xxx
是的话在 services 中引入
.config( [
'$compileProvider',
function( $compileProvider )
{
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|tel|file|sms):/);
// Angular v1.2 之前使用 $compileProvider.urlSanitizationWhitelist(...)
}
]);
【关于angularJs发送短信出现|关于angularJs发送短信出现 unsafe:sms:】然后强制刷新页面,基本就解决了。

    推荐阅读