Giter Site home page Giter Site logo

blog's People

Watchers

 avatar

blog's Issues

Javascript算法面试题全解

1.利用JS实现判断一个单词是否是回文。

function checkPalindrom(str) {
return str == str.split('').reverse().join('');
}

利用字符串和数组的各种方法,而不是利用循环来实现。

2.去掉一组整型数组重复的值。

Javascript知识面试题全解

DOM元素e的e.getAttribute(propName)和e.propName有什么区别和联系?
http://www.jianshu.com/p/rRssiL
一个叫做特性,一个叫做属性。特性得到的值只能是字符串,而且获得的就是在原文件中设置的那个字符串,不会进行转换,而属性会进行转换,得到最终的结果。
有些属性通过两种方式得到的值相等,例如id,title。
其他的不一样,例如input的value属性,如果发生了变化,特性得到的依然是初始值,属性会得到最终的真实value。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.