2017年7月13日
摘要: 1.ts less 网上搜视频教程,不用太复杂的,短短几分钟视频基本就对其入门了,比自己搜官网学习更方便。 常用的ts技术:let name:string=""; let obj:ClassName={}; let array:class[]=[]; as HTMLDivElement, inter 阅读全文
posted @ 2017-07-13 12:51 Yogurshine 阅读(285) 评论(0) 推荐(0) 编辑
  2017年7月10日
摘要: if (parentOrg) { if (parentOrg.children) { parentOrg.children.push(org); } else { parentOrg.children = []; parentOrg.children.push(org); } } else { r. 阅读全文
posted @ 2017-07-10 18:09 Yogurshine 阅读(441) 评论(0) 推荐(0) 编辑
摘要: 1.判断两个空数组相等 (Array.isArray(oldValue) && Array.isArray(newValue)) { if (Utility.ArrayIsEqual(oldValue, newValue)) { continue; } } static ArrayIsEqual(v 阅读全文
posted @ 2017-07-10 17:41 Yogurshine 阅读(158) 评论(0) 推荐(0) 编辑
  2017年6月25日
摘要: 1.如果想要动态加清除浮动的代码,可以这样做: 阅读全文
posted @ 2017-06-25 20:38 Yogurshine 阅读(205) 评论(0) 推荐(0) 编辑
  2017年6月11日
摘要: 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8" /> 5 <title>"Excel"</title> 6 <style type="text/css"> 7 img{ 8 pointer-events: none; 9 } 1 阅读全文
posted @ 2017-06-11 15:57 Yogurshine 阅读(1615) 评论(0) 推荐(0) 编辑
  2017年6月1日
摘要: console打印信息: 1Polygon--getLength()!2Triangle length is 12Triangle area is 16Hi,I'm Triangle!Hi,I'm Polygon!12Polygon--getLength()! 阅读全文
posted @ 2017-06-01 09:44 Yogurshine 阅读(231) 评论(0) 推荐(0) 编辑
  2017年5月23日
摘要: 一、在div里面有子元素div1时,div在没有设置overflow:hidden或者是border属性时,div的margin-top的值为div/div1中的margin-top的最大值。上面的结果如图: 注意:div1在div中的margin-top值为0px; 二、当父级div设置了上述属性 阅读全文
posted @ 2017-05-23 10:31 Yogurshine 阅读(287) 评论(0) 推荐(0) 编辑
  2017年5月18日
摘要: p[name]{background:red;} 只使用属性名p[name=ghr]{background:red;} 指定属性名,并指定了该属性的属性值p[name~=old]{background:red;}此属性值是一个词列表,并且以空格隔开,其中词列表中包含了一个value词p[name^= 阅读全文
posted @ 2017-05-18 11:10 Yogurshine 阅读(400) 评论(0) 推荐(0) 编辑
  2017年5月17日
摘要: 在html网页中引入css样式表主要有一下四种方法 1、行内引入 <p ></p> 2、嵌入式 <style type="text/css"> p{ width:100px; height:40px; color:red; } </style> 3、导入式 <style type="text/css 阅读全文
posted @ 2017-05-17 18:12 Yogurshine 阅读(234) 评论(0) 推荐(0) 编辑
  2017年5月16日
摘要: The SRC and HREF attributes are used to include some external entities like an image, a CSS file, a HTML file, any other web page or a JavaScript file 阅读全文
posted @ 2017-05-16 15:44 Yogurshine 阅读(850) 评论(0) 推荐(0) 编辑