var htmlEl = angular.element(document.querySelector('html'));
htmlEl.on('click', function (event) {
if (event.target.nodeName === 'HTML') {
if (myPopup) {//myPopup即为popup
myPopup.close();
}
}
});