
javascript
重生之我是一名程序员
IN IT && WIN IT !
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
node-nvm版本管理
在 windows 环境使用 nvm 来管理升级和 node版本的切换。2.切换版本,比如我想 切换 node版本 至。直接搜索安装 nvm 即可。1.查看当前可选node。转载 2023-10-10 09:14:18 · 180 阅读 · 0 评论 -
node- operation not permitted
选中 node 目录文件夹,根据1,2,3步,将 user 组设置完全控制。转载 2023-10-10 09:11:01 · 435 阅读 · 0 评论 -
设置滚动条样式
设置滚动条样式网上找的不错的滚动条样式: /*滚动条样式*/.divClass::-webkit-scrollbar {/*滚动条整体样式*/ width: 4px; /*高宽分别对应横竖滚动条的尺寸*/ height: 4px;}.divClass::-webkit-scrollbar-thumb {/*滚动条里面小方块*/ border-ra...转载 2018-07-18 08:46:33 · 525 阅读 · 0 评论 -
JavaScript中单一对象的原型链
JavaScript中单一对象的原型链function Person(){}从chrome中控制台输出:> Person.__proto__< function () { [native code] }> Person.__proto__.__proto__< Object {__defineGetter__: function, __defi...转载 2018-02-09 18:05:58 · 170 阅读 · 0 评论 -
javascript原型链例子
JavaScript中原型链例子《摘自Object-Oriented JavaScript, 3rd Edition》function Shape(){ this.name = 'Shape'; this.toString = function(){ return this.name; }}function TwoDShape(){ this.name = ...转载 2018-02-09 13:37:30 · 167 阅读 · 0 评论 -
javascript变量提升(variable hoisting)
Variable hoisting(变量提升)《摘自Object Oriented JavaScript,3rd Edition》Here’s an interesting example that shows an important aspect of local versus global scoping:var a = 123;function f() { alert...转载 2018-02-09 08:46:11 · 491 阅读 · 0 评论 -
arguments 转换成数组
arguments 转换成数组function func(){ var args = [].slice().call(arguments); return args.reverse();}> f(1,2,3,4);< [4, 3, 2, 1]> var arr = f(1,3,4,2);> arr;< [2, 4, 3, 1]> arr.sort();< [1, 2, 3, 4转载 2017-11-01 21:13:54 · 272 阅读 · 0 评论 -
javascript查看对象拥有的属性
javascript查看对象拥有的属性Object.prototype.properties = function(){ var result = []; for (var property in this) result.push(property); return result;}var test = {a: 10, b:3};test.properties();//这转载 2017-11-01 21:10:34 · 579 阅读 · 0 评论 -
javascrip中的apply和call
javascript中的apply和call的区别: function sayHi(word){ console.log(this.name + " say :''"+ word + "''");}var cat = {name:'cat', say: sayHi};var mouse = {name: 'mouse', say: sayHi};cat.say('hello');//原创 2017-10-29 20:51:04 · 229 阅读 · 0 评论 -
javascript使用闭包实现AOP
<script type="text/javascript"> Function.prototype.before = function(beforefn){ var _self = this; return function(){ beforefn.apply(this, arguments); return _self.apply(原创 2017-09-24 08:17:54 · 295 阅读 · 1 评论