if(window.clipboardData.getData("Text").length>0)不知道行不行, 试试