patrickgao91 / blog Goto Github PK
View Code? Open in Web Editor NEWPersonal blog
Personal blog
1.利用JS实现判断一个单词是否是回文。
function checkPalindrom(str) {
return str == str.split('').reverse().join('');
}
利用字符串和数组的各种方法,而不是利用循环来实现。
2.去掉一组整型数组重复的值。
DOM元素e的e.getAttribute(propName)和e.propName有什么区别和联系?
http://www.jianshu.com/p/rRssiL
一个叫做特性,一个叫做属性。特性得到的值只能是字符串,而且获得的就是在原文件中设置的那个字符串,不会进行转换,而属性会进行转换,得到最终的结果。
有些属性通过两种方式得到的值相等,例如id,title。
其他的不一样,例如input的value属性,如果发生了变化,特性得到的依然是初始值,属性会得到最终的真实value。
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.