会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
gyg1222
博客园
首页
新随笔
联系
订阅
管理
2023年9月20日
9.20周三(动手动脑问题解决)
摘要: 无法编译 原因:没有默认构造 推出结论:当你给类提供了一个自定义的构造方法,导致系统不在提供默认构造方法了,需要自己提供 初始化 测试 package org.example; public class InitializeBlockClass { public int field=100; { f
阅读全文
posted @ 2023-09-20 12:36 许七安gyg
阅读(6)
评论(0)
推荐(0)
编辑
$(document).ready(function() { // 禁止右键 $(document).bind("contextmenu", function(){return false;}); // 禁止选择 $(document).bind("selectstart", function(){return false;}); // 禁止Ctrl+C 和Ctrl+A $(document).keydown(function(event) { if ((event.ctrlKey&&event.which==67) || (event.ctrlKey&&event.which==86)) { //alert("对不起,版权所有,禁止复制"); return false; } }); });