我需要在我的窗口关闭时将一些事件附加到#import "BWDictationTextField.h"
@implementation BWDictationTextField
- (void)dictationRecordingDidEnd {
NSLog(@"%s", __PRETTY_FUNCTION__);
}// done is pressed by user after dictation
@end
,我无法弄清楚如何执行此操作。
popup
我该怎么做?
当我选择时
$scope.loginWithOk = function() {
var left, popup, top;
$window.$scope = $scope;
left = screen.width / 2 - 250;
top = screen.height / 2 - 250;
popup = $window.open('/auth/odnoklassniki', '', 'top=' + top + ',left=' + left + ',width=700,height=500');
};
我看不到任何警告,所以此选项似乎无效。
答案 0 :(得分:0)
您可以尝试使用window.onunload
https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onunload
按要求提供更多详情:
popup.onunload = function() {
return alert(2222222222);
}