页面结构如下
------------------------------------------
| outerWindow |
| |
| 口口口口口口口口口口口口口口口 |
| buttons |
| |
| ---------------------------------- |
| | innerWindow | |
| | | |
| | | |
| | | |
| | | |
| | | |
| ---------------------------------- |
| |
------------------------------------------
如果点击outerWindow中的按钮(buttons):
那么,
// $ === jQuery var $buttonWrap = $('#button-wrap'); $buttonWrap.on('mousedown', function (event) { event.preventDefault(); });
(待续...)