Giter Club home page Giter Club logo

js_basic's Introduction

js 基础以后不定期更新。

感觉自身在内置对象,尤其是array 和 string的遍历上有很大的不足。 例如二者都有indexOf(),除了可以查看遇到的第一个元素(大雾)的索引之外。更重要的是关于-1的运用(若出现-1,则不存在该元素。)

string还有一个好用的方法就是.charAt, 利用遍历,可以把string的各个元素的出来。

二者共同点的方法:

  1. join() --- split()
      
  2. contact()
  
  3.splice() ---- substring()  (substr尽量不要用。)

array多关注 array的元素添加删除。

牢记 for , for in forEach()的相同和不同。

以上 加油💪

js_basic's People

Contributors

lidachao111222 avatar

Watchers

 avatar

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.