- 博客(4)
- 收藏
- 关注
原创 js 在表格中设置右键菜单,复制到下一行
document.oncontextmenu = function(ev){ var dom = ev.target if(KaTeX parse error: Expected '}', got 'EOF' at end of input: …ngth>0){ if((’.myMenu’).length==0){ $(‘body’).prepend(<ul class="myM...
2019-09-07 10:34:02 593
原创 Win7找回误修改的系统变量path
Win+R ⥤ regedit ⥤ 可以去HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\Session Manager\Environment下,右边找到path,把数值复制到HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Environment的右边path ...
2019-07-15 11:43:28 593
转载 函数声明、函数表达式、匿名函数、立即执行函数详解
定义函数的方式有三种: 1.函数声明: function 函数名称 (参数:可选) { 函数体 } 2.函数表达式: var express= function 函数名称:可选 (参数:可选) { 函数体 } 3.构造函数: var fun =new Function(参数:可选); 最常用的是函数声明和函数表达式。 一:函数声明 从上面的定义可以看出,函...
2019-06-24 17:25:31 181
转载 URL中的hash(井号)
URL中的hash(井号) 1.#的含义 #代表网页中的一个位置,其右边的字符,就是该位置的标识符。比如 http://www.example.com/index.html#print 就是代表index.html中的print位置。浏览器会自动把print位置滚动到页面可视区域内。 设置方法: step1:设置一个锚点定位到print位置 step2:在页面需要定位的内容加上id=“print”...
2018-11-20 17:57:47 530
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人