2013-02-07 24 views

回答

0

從imgAreaSelect API的樣本:

$('img#photo').imgAreaSelect({ 
    onSelectEnd: function (img, selection) { 
     alert('width: ' + selection.width + '; height: ' + selection.height); 
    } 
}); 

只是檢查是否selection.widthselection.height> 0