var htmlEl = angular.element(document.querySelector('html'));
htmlEl.on('click', function (event) {
if (event.target.nodeName === 'HTML') {
if (myPopup) {//myPopup即为popup
myPopup.close();
}
}
});
转载于:https://www.cnblogs.com/nullman/p/5970203.html