jasminehua / asker Goto Github PK
View Code? Open in Web Editor NEWFor collecting my questions.
License: The Unlicense
For collecting my questions.
License: The Unlicense
(2.9|0) // => 2
(~~2.9) // => 2
(2.9) >>> 0 // => 2
(2.9) >> 0 // => 2
(-2.9) >> 0 //=> -2
为什么位操作符可以取整。小数在计算机中也是以二进制存储的。位操作符是只会保留32位的左操作数么?
(7) >> 1 // => 3
(-7) >> 1 //=> -4
有符号右移会将左操作数转换为32位整数。负数十进制转二进制位补码。
例:
-32
第一步:32(10)=00100000(2)
第二步:求反 11011111
第三步:加1 11100000
var a = {n : 1}
a.x = a = {n : 2}
console.log(a) // =>{n: 2}
a.x = {n : 2}
console.log(a) // =>{n: 2, x: Object}
按照es5规范a.x = a = {n : 2}等价于a.x = (a = {n : 2})。在(a = {n : 2})执行后a指向{n : 2}并返回{n : 2}。接着应执行a.x = {n : 2},可执行后输出a并未出现{n: 2, x: Object}的预期结果
i had tried to add webkit-playsinline
<video id="myVideo" width="280" height="140" webkit-playsinline>
but the native video player still will pop up and takes over the screen on wechat of android.
Is there any way around this?
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.