0

点击后如何选择整个链接?以后使用document.getSelection();

我的代码不起作用:

$('a').on('click', function(event) {
    event.preventDefault();

    $(this).select();
    //document.getElementByTagName('a').select(); // Doesn't work too

    return false;
});
4

0 回答 0