阻止某些文字被選中$.fn.disableSelection

$.fn.disableSelection = function() {
    return this.bind( ( $.support.selectstart ? "selectstart" : "mousedown" ) +
        ".ui-disableSelection", function( event ) {
            event.preventDefault();
        });

} ui

相關文章
相關標籤/搜索