- angular 默认情况下 的安全协议 是 https?|ftp|mailto|
- 当我们使用blob 对象去产生url时,需要设定blob为安全协议
-
var app = angular.module( ‘myApp‘, [] ).config( [ ‘$compileProvider‘, function( $compileProvider ) { $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|chrome-extension):/); // Angular before v1.2 uses $compileProvider.urlSanitizationWhitelist(...) }])
时间: 2024-10-19 03:07:28