$("body").on('copy', function (e) { if (typeof window.getSelection == "undefined") return; //IE8 or earlier... var body_element = document.getElementsByTagName('body')[0]; var selection = window.getSelection(); //if the selection is sh
网上的Eclipse注释模板,在这里稍稍整理一些比较常用的. 编辑注释模板的方法:Window->Preference->Java->Code Style->Code Template 然后展开Comments节点就是所有需设置注释的元素啦.现就每一个元素逐一介绍: 1.文件(Files)注释标签: /** * All rights Reserved, Designed By www.tydic.com * @Title: ${file_name} * @Package ${pac
转自:https://www.cnblogs.com/zdz8207/p/js-oncopy.html var ua = navigator.userAgent.toLowerCase(); if( window.ActiveXObject ){ document.body.oncopy = function(){ event.returnValue = false; var t=document.selection.createRange().text; var s=" 原文链接:"