angular 默認狀況下 的安全協議 是 https?|ftp|mailto| chrome
當咱們使用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(...) }])