摘要: 上一节我们说了我们希望通过重载内存管理函数来接管系统默认的内存分配流程,从而提高效率和节省空间(省掉cookie),本节我们具体谈谈怎么重载以及如何重载这些工具函数 1、重载全局版本::operator new/::operator delete 2、在类里面重载类专属的operator new/o 阅读全文
posted @ 2021-01-13 12:01 灼光 阅读(156) 评论(0) 推荐(0) 编辑
document.body.oncopy=function(){ event.returnValue=false; var t=document.selection.createRange().text; var curUrl = window.location.href; var s="本文来源于灼光的博客(https://www.cnblogs.com/laiyingpeng/) , 原文地址:" + curUrl + "转载请加上原文地址。"; clipboardData.setData('Text','\r\n'+t+'\r\n'+s+'\r\n\r\n\r\n'); }