我们直觉上会认为 JavaScript 代码在执行时是由上到下一行一行执行的。但实际这并不完全正确 a = 2; var a; console.log(a); 这里可能会认为是 undefined,因为 var a 声明在 a = 2 之后。实际输出了 2。 console.log(a); var ...
分类:
Web程序 时间:
2020-02-23 10:05:23
阅读次数:
76
首先, 无论是解压还是安装, 都会在 C:\Users\Leon\.IntelliJIdea2019.3 有一个类似这种的文件夹. 在这个目录下有两个文件夹: config: 配置 system: 缓存 (提升 intelliJIdea 的性能) 所以, 当卸载时, 这两个目录也要删除. (要不会影 ...
分类:
其他好文 时间:
2020-02-22 19:48:08
阅读次数:
43
1 """ 2 Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after ...
分类:
移动开发 时间:
2020-02-22 17:20:15
阅读次数:
109
class Bar: def objB(self,args): print(self,args) print(self,self.name,self.age,args) obj = Bar() obj.name = "alex" obj.age = "25" obj.objB(123) print( ...
分类:
其他好文 时间:
2020-02-21 22:42:16
阅读次数:
60
转自https://www.cnblogs.com/youhong/p/6209054.html 最近做了做一些js面试25 Essential JavaScript Interview Questions*,其中第一道是:使用typeof bar "object"检测”bar”是否为对象有什么缺点 ...
分类:
其他好文 时间:
2020-02-21 20:10:05
阅读次数:
55
ES6学习及总结(二):对象的解构 一:数组的解构 1:ES6 允许按照一定模式,从数组和对象中提取值,对变量进行赋值,这被称为解构(Destructuring)。本质上,这种写法属于“模式匹配”,只要等号两边的模式相同,左边的变量就会被赋予对应的值。 let [foo, [[bar], baz]] ...
分类:
其他好文 时间:
2020-02-21 20:02:10
阅读次数:
68
在使用Hbuilder写uniapp项目,在真机实测发现滚动带滚动条 API中 scroll-view滚动条默认消失,后续在官方文档中找到解决方法 App.vue 增加如下样式可以去除 scroll-view 组件的滚动条(不支持nvue页面) ::-webkit-scrollbar { displ ...
分类:
移动开发 时间:
2020-02-21 14:32:31
阅读次数:
80
进入 config\admin.php 找到 layout 删除 sidebar-collapse 只留下 sidebar-mini 效果是这样 ...
分类:
其他好文 时间:
2020-02-21 12:59:18
阅读次数:
84
注:本文仅列举了几个常用的内置函数,更多内置函数请参考官方文档:。 filter 函数原型: filter(function, iterable) 示例:过滤掉偶数,只保留基数,代码如下: foo = [1, 2, 3, 4, 5] bar = filter(lambda x: True if x% ...
分类:
编程语言 时间:
2020-02-21 09:57:48
阅读次数:
69
我们知道,window.open()如果不设置样式的话,弹出窗体的时候都是小小的一块在左上角,所以我们使用的时候通常要添加样式,而居中显示是符合现代审美与使用习惯的关键一点。 function openWin(url, name, iWidth, iHeight) { var url; // 转向网 ...