查看当前所有namesapce [root@master ~]# kubectl get namespaces -A NAME STATUS AGE default Active 63d hkd Active 31d kube-node-lease Active 57d kube-public Ac ...
分类:
其他好文 时间:
2020-07-30 14:44:47
阅读次数:
85
一:完整代码 ;(function (w){ function createElement(type, attribute, ...childs){ //创建虚拟DOM let element = { type: '', attribute: {}, childs: [] }; element.ty ...
分类:
其他好文 时间:
2020-07-29 22:00:12
阅读次数:
87
一 词汇训练 类(class):告诉python创建一个新类型的东西。(Tell python to make a new type of thing). 对象(object):两种含义:最基本类型的东西,任何实例。(the most basic type of thing,and any inst ...
分类:
其他好文 时间:
2020-07-29 21:49:24
阅读次数:
77
一: 完整代码 function $(element){ //传入响应式区域的dom根节点,返回响应式数据 let $$ = {}; //响应式数据 function getElements(el){ //传入一个元素节点,返回一个保存着该元素本身及所有子元素的数组 var elementList ...
分类:
其他好文 时间:
2020-07-29 21:48:36
阅读次数:
91
作者:张艳涛 日期:2020-07-29 this用在第一层,如果在JS第3二层,要用 _this importfxx(obj) { let _this = this; let inputDOM = this.$refs.inputer; // 通过DOM取文件数据 this.file = even ...
分类:
其他好文 时间:
2020-07-29 21:26:17
阅读次数:
72
解析HTML,生成DOM树,解析CSS,生成CSSOM树 将DOM树和CSSOM树结合,生成渲染树(Render Tree) Layout(回流):根据生成的渲染树,进行回流(Layout),得到节点的几何信息(位置,大小) Painting(重绘):根据渲染树以及回流得到的几何信息,得到节点的绝对 ...
分类:
其他好文 时间:
2020-07-29 21:18:30
阅读次数:
79
<div id='main'>谁呀</div> <script> var main = document.getElementById('main'); console.log(main) </script> ...
分类:
Web程序 时间:
2020-07-29 10:29:38
阅读次数:
71
XMl //实现xml的写入 //1、在内存中构建Dom对象 XmlDocument xmlDoc = new XmlDocument(); //增加文档说明 XmlDeclaration xmlDeclaration = xmlDoc.CreateXmlDeclaration("1.0", "GB ...
分类:
Web程序 时间:
2020-07-29 10:17:41
阅读次数:
91
HTML 的DOM querySelector()方法可以不需要额外的jQuery等支持,也可以方便的获取DOM元素,语法跟jQuery类似。 获取文档中id=”container”的元素 <!DOCTYPE html> <html lang="en"> <head> <meta charset=" ...
分类:
其他好文 时间:
2020-07-28 22:28:34
阅读次数:
126