<script type="text/javascript">
//屏蔽右键菜单
document.oncontextmenu = function (event) {
if (window.event) {
event =
window.event;
} try {
var the = event.srcElement; if (!((the.tagName == "INPUT" && the.type.toLowerCase() ==
"text") || the.tagName == "TEXTAREA")) { return false; } return true;
} catch (e) {
return false;
//屏蔽粘贴
document.onpaste = function (event) {
if (window.event) { event = window.event; } try {
var the =
event.srcElement; if (!((the.tagName == "INPUT" && the.type.toLowerCase() == "text") || the.tagName ==
"TEXTAREA")) { return false; } return true;
} catch (e) { return false; }
//屏蔽复制
document.oncopy = function (event) {
if (window.event) { event = window.event; } try {
var the = event.srcElement; if (!((the.tagName == "INPUT"
&& the.type.toLowerCase() == "text") || the.tagName == "TEXTAREA")) { return false; } return true;
} catch (e) {
return false;
//屏蔽剪切
document.oncut = function (event) {
if (window.event) { event = window.event; } try {
the = event.srcElement; if (!((the.tagName == "INPUT" && the.type.toLowerCase() == "text") || the.tagName ==
"TEXTAREA")) { return false; } return true;
} catch (e) { return false; }
//屏蔽选中
document.onselectstart = function (event) {
if (window.event) { event = window.event; } try {
var the = event.srcElement; if (!
((the.tagName == "INPUT" && the.type.toLowerCase() == "text") || the.tagName == "TEXTAREA")) { return false; }
return true;
} catch (e) { return false; }
</script>
用R语言画频数分布图命令 r语言绘制频率直方图
1.直方图直方图和柱形图的区别:直方图表示频数,柱形图表示数量。一般直方图的X轴表示取值范围,Y轴表示频数hist() 函数> hist(rnorm(1000)) #1000个正态随机数的直方图
> hist(islands) #岛屿数据集直方图 &nb
Java生成不重复数字 java生成不重复id
场景UUID 是指Universally Unique Identifier,翻译为中文是通用唯一识别码,UUID 的目的是让分布式系统中的所有元素都能有唯一的识别信息。在某些场景下需要给数据库中存储的某些字段使用唯一标志。或者需要一些唯一标志的字符串。注:博客: javascript:void(0)
关注公众号 霸道的程序猿 获取编程相关电子书、教程推送与免费下载。实现首先新建一个ID生成器工