
FrontEnd
文章平均质量分 93
aaa_dai
https://github.com/Song2017
展开
-
JScript&JQuery学习
JScript 脚本语言 解释语言1,语法2,通过标签的id获取值var o=document.getElementById('user');3,JS的外部引用写法4,JQuery jQuery 是一个 JavaScript 库. JScript学习 function aa(){ //aler原创 2017-01-23 22:22:47 · 730 阅读 · 0 评论 -
转载: CHROME开发者工具的小技巧
转自: coolshell.cn Chrome的开发者工具是个很强大的东西,相信程序员们都不会陌生,不过有些小功能可能并不为大众所知,所以,写下这篇文章罗列一下可能你所不知道的功能,有的功能可能会比较实用,有的则不一定,也欢迎大家补充交流。 话不多话,我们开始。 代码格式化 有很多css/js的代码都会被 minify 掉,你可以点击代码窗口左下...转载 2019-01-14 20:04:40 · 437 阅读 · 0 评论 -
label通过CSS竖直显示文字
效果Codecss .vertical { writing-mode: vertical-lr; text-decoration: underline; transform: rotate(180deg); }html<!DOCTYPE html><html&gt...原创 2018-11-07 18:03:58 · 1663 阅读 · 0 评论 -
JacaScript精粹(蝴蝶书小结)
JavaScript: The Good PartsJacaScript精粹(小结)1. Good PartsJavaScript 是面向浏览器的语言,运行的环境是浏览器; 操作的对象是HTML DOM(Document object type)的节点. Good Parts:函数基于词法作用域的顶级对象,第一个成为主流的lambda语言.披着C外衣的Lisp...原创 2018-05-08 20:04:23 · 830 阅读 · 0 评论 -
JavaScript DOM编程艺术
chapter 2: JavaScript 语法JavaScript嵌入到html中的方式: 3种 作为一种解释型语言直接被浏览器读入并执行语法语句: 像英语中的句子,只不过受体是浏览器注释: 受体是开发和维护的人.方式: //, /*...*/变量: 计算机中的一小块固定的内存区域,变量指向这块内存的地址,内存代表的值就是变量的值. 程序运行过程中,变量的值可以改...原创 2018-06-25 17:58:05 · 2872 阅读 · 0 评论 -
angular quick start tutorial summary
Angular Homeangular.cn angular.io angular-in-memory-web-apiCreat你使用 CLI 创建了第二个组件 HeroesComponent。 ng generate component heroes 你把 HeroesComponent 添加到了壳组件 AppComponent 中,以便显示它。 app.com...原创 2018-05-24 20:43:04 · 388 阅读 · 0 评论 -
JavaScript 闭包(Closure)
Closure 闭包闭包是函数和声明该函数的词法环境的组合1闭包是一种实现函数作为参数的方式,是一个表达式,用途有:访问变量(在变量的作用域内,多在外部函数中声明),被赋值给一个变量, 作为函数的实参被传递,作为函数结果被返回 或者说是一个栈帧,在函数开始是被分配到堆,当函数返回后仍然不会被释放.function sayHello(name) { var text = 'H...原创 2018-04-25 20:26:21 · 237 阅读 · 0 评论 -
JavaScript调用模式与this关键字绑定的关系
Invocation 调用调用一个函数将暂停当前函数的执行,传递控制权和参数给新函数. 实参与形参不一致不会导致运行时错误,多的被忽略,少的补为undefined 每个方法都会收到两个附加参数:this和arguments.this的值取决于调用的模式,调用模式:方法,函数,构造器和apply调用模式 this被赋值发生在被调用的时刻.不同的调用模式可以用call方法实现 var my...原创 2018-04-19 18:48:01 · 272 阅读 · 0 评论 -
Event Tracker system & Template system实现
Create your own Event Tracker system//// 1. create an `EventTracker` object// • it should accept a name when constructed// 2. extend the `EventTracker` prototype with:// • an `on` method/...转载 2018-03-16 18:16:52 · 498 阅读 · 0 评论 -
JavaScript&DOM
DOM(Document of Model)文档对象类型用树形结构完整的呈现了html文档,包括元素之间的关系和组成元素的内容及属性浏览器如何处理html文档: how browser handle html documentreceived html: server respoend with html no matter what it received.html tags ...原创 2018-03-16 18:00:41 · 561 阅读 · 0 评论 -
JavaScript Function
JavaScript FunctionFunctionlog infoconsole.log(Math);//show at Console in browser assert(true, “message”); log(variable);//show value of var assert( true, “I’ll pass.” ); //pass assert( “truey”, “原创 2017-11-25 17:39:32 · 435 阅读 · 0 评论 -
CSS学习
CSS(Cascading Style Sheets): 层叠样式表section 作用 :美化Html页面section 创建优先级: 浏览器是通过判断哪些属性值与元素最相关以决定并应用到该元素上行间样式表)Inline style > 内部样式)Internal style sheet >外部样式)External style sheet > 浏览器...原创 2017-01-03 21:18:38 · 670 阅读 · 0 评论 -
CSS选择器_组合_伪类
定义MSN文档: CSS_Selectors /* 简单选择器 类型选择器 div, img, p... 选择与给定节点名称匹配的所有元素。 document.querySelectorAll('p') 类选择器 .classname 选择具有给定class属性的所...转载 2019-04-12 18:08:57 · 374 阅读 · 0 评论