/**
* 获取网页复制动作
* οncοpy="getCopyLog(this,position)"
* @param string text
*/
function getCopyLog(res,position){
//<script type="text/javascript" src="public/zt/zt.js"></script>
if(window.getSelection){
var thisVal = window.getSelection();
}else{
var thisVal = document.selection.createRange().text;
}
var res = $(res).text();
var res = $.trim(res);
if(res != $.trim(thisVal))return;
var position = $.trim(position);
var pre = window.location.pathname;
* 获取网页复制动作
* οncοpy="getCopyLog(this,position)"
* @param string text
*/
function getCopyLog(res,position){
//<script type="text/javascript" src="public/zt/zt.js"></script>
if(window.getSelection){
var thisVal = window.getSelection();
}else{
var thisVal = document.selection.createRange().text;
}
var res = $(res).text();
var res = $.trim(res);
if(res != $.trim(thisVal))return;
var position = $.trim(position);
var pre = window.location.pathname;