摘要: 深度克隆实际上仅仅是针对于引用类型而言的,对于值类型而言,浅克隆跟深克隆都完成了对栈上值的克隆。 对于引用类型而言:浅克隆只克隆了引用类型的堆上的引用地址,而并没有克隆栈上的值;而深度克隆则即克隆了堆上的引用地址,也克隆了栈上的值。 阅读全文
posted @ 2018-12-31 16:50 <--青青子衿--> 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 3.5与4.0语法的异同 阅读全文
posted @ 2018-12-31 16:50 <--青青子衿--> 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 方法的扩展 阅读全文
posted @ 2018-12-31 16:49 <--青青子衿--> 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 方法的泛型扩展 阅读全文
posted @ 2018-12-31 16:49 <--青青子衿--> 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 泛型的类型限定 阅读全文
posted @ 2018-12-31 16:48 <--青青子衿--> 阅读(211) 评论(0) 推荐(0) 编辑
// /**/ // 在页脚Html代码 引入 // function btn_donateClick() { var DivPopup = document.getElementById('Div_popup'); var DivMasklayer = document.getElementById('div_masklayer'); DivMasklayer.style.display = 'block'; DivPopup.style.display = 'block'; var h = Div_popup.clientHeight; with (Div_popup.style) { marginTop = -h / 2 + 'px'; } } function MasklayerClick() { var masklayer = document.getElementById('div_masklayer'); var divImg = document.getElementById("Div_popup"); masklayer.style.display = "none"; divImg.style.display = "none"; } setTimeout( function () { document.getElementById('div_masklayer').onclick = MasklayerClick; document.getElementById('btn_donate').onclick = btn_donateClick; var a_gzw = document.getElementById("guanzhuwo"); a_gzw.href = "javascript:void(0);"; $("#guanzhuwo").attr("onclick","follow('33513f9f-ba13-e011-ac81-842b2b196315');"); }, 900);