Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Learnt #7

Open
VeryLazyBoy opened this issue Feb 3, 2019 · 0 comments
Open

Learnt #7

VeryLazyBoy opened this issue Feb 3, 2019 · 0 comments

Comments

@VeryLazyBoy
Copy link
Owner

VeryLazyBoy commented Feb 3, 2019

JQuery

  • function() {...$(this) => this element in JQuery wrapper}
  • way to construct keyup searching (checking current input value while receiving data)
  • apendTo (as a child)
  • val()
  • text()
  • css('display', 'none')
  • addClass()
  • .class > a
  • [id^=sth]
  • nextAll(selector) (all siblings)
  • find(selector) (all descendant)
  • child(selector) (immediate child)
  • $(dom) => jquery

Js

  • var set = new Set([1, 2, 1]);
  • String.format
  • sublime's js beauty
  • element.classList.toggle('show')
  • onClick = function(this) => this is the element; function() {this} => this is the window
  • sort is always alphabetical by default
  • null == 0 > false
  • null == "" > false
  • 0 == "" > true
  • querySelector needs escape "." etc, whereas getElementById doesn't need

HTML

  • autoComplete = 'off' => avoid auto fill in chrome

MongoDb

  • find
  • aggregate
    • group
    • match
    • limit
  • sort
  • Bson
  • NoSQLBooster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant