$(document).mouseup(function(e){ var _con = $('#yrdy'); // 设置目标区域 if(!_con.is(e.target) && _con.has(e.target).length === 0){ // Mark 1 功能区 }});