Since you read, you should have a output.
madneal / reading-notes Goto Github PK
View Code? Open in Web Editor NEWSince you read, you should have a output.
Since you read, you should have a output.
Since you read, you should have a output.
What is future of human? Who knows.
Since test is quite significant to the program. Hence, test has obtained lots of attention from managers or developers themselves. However, the test in JavaScript is still under development. Take myself for example, I have never write any unit test case for my JavaScript code. Certainly, this book will not only contains the unit test. I am sure there must be something else valuable. Let's begin and explore the unknown things 🎉
原文: http://zhouweicsu.github.io/blog/2017/04/21/vue-2-0-template/
Structure pseudo class selector
The n begins with 1 instead of 0. If n is 0, it will not match any element. The n could be integer (1,2,3,4), key word(odd, even), or equation(2n+1, -n+5).
Hence the n could be:
The scenes to be used of nth-of-type
Pseudo elements
::first-letter
::first-line
::before
and ::after
::selection
, it can only accepts two attribute, including background and color.attribute selector
border-radius
And the border-radius can be set respectively:
The attributes of border-radius can contain two values:
The first is the horizontal fillet radius, and the second is the vertical fillet radius. And the two values will be split by '/'.
NOTICE:
When set the specific border-radius(e.g. border-top-left-radius), the '/' is not needed. If you add, it will be a wrong behavior.
The basic background attributes:
The conditions to validate the text-overflow:
note:word-wrap cannot work in <pre> and <table>
Punctuation is not allowed placed at the beginning of the line in IE, but allowed in Chrome/Safari/Firefox.
box model
一般来说,偏差和方差是有冲突的,称为偏差-方差窘境(bias-variance dilemma)
“use strict"
指令只有在脚本或函数的顶部才能生效。
如何将严格模式和非严格模式的文件区分:
第一个解决方案是不要将进行严格模式检查的文件和不进行严格模式检查的文件连接起来。
第二个解决方案是通过将其自身包裹在立即调用的函数表达式(IIFE)中的方式来链接多个文件。
(function() {
// file1.js
"use strict";
functionf() {
// ...
}
// ...
})();
(function() {
// file2.js
// no strict-mode directive
function f() {
var arguments = [];
/ /...
}
//...
})();
JavaScript中的所有的数字都是双精度浮点数。
NaN是JavaScript中唯一一个不等于其自身的值。
JavaScript中有7个假值:false, 0, -0, '', NaN, null, undefined.
对象是通过valueOf方法墙纸转换为数字,通过toString的方法强制转换为字符串。
if (typeof Object.getPrototypeOf === 'undefined') {
Object.getPrototypeOf = function(obj) {
if (!obj || (t !== 'object' && t !== 'function') {
throw new TypeError('not an object');
}
return obj.__proto__;
};
}
由于对象共享原型,因此每一个对象都可以增加、删除或修改原型的属性。这就是猴子补丁的定义。
增加不可枚举的属性
Object.defineProperty(Object.prototype, 'allKeys', {
value: function() {
var result = [];
for (var key in this) {
results.push(key);
}
return result;
},
writable: true,
enumerable: false,
configurable: true
});
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.