close
丁斌煌如欲浏覽完整內容,請至中時新聞網:", additionalLinkParam = "?from=copy", additionalLinkUrl = window.location.origin + window.location.pathname + additionalLinkParam; //題目開放複製,可超過限制字數,但不克不及跨越題目本身字數 if ($eventTarget.is(".article-title") && selectedText.length <= $eventTarget.text().length) { return; } else { if (toReturnBlankContent) { return false; } if (selectedText.length <= maxAllowedCopyTextLength) { return; } } selectedText = selectedText.substr(0, maxAllowedCopyTextLength) + "..."; selectedText += additionalLinkTitle + additionalLinkUrl; $tempDiv = $("
").css({ "position": "absolute", "left": "-9999px" }).html(selectedText).appendTo("body"); selectionObj.selectAllChildren($tempDiv.get(0)); document.execCommand("copy"); $tempDiv.remove(); } }); });
arrow
arrow
    全站熱搜

    rucbl3orf5 發表在 痞客邦 留言(0) 人氣()