タグ

thisに関するmut00tumのブックマーク (4)

  • 第16回 JavaScriptのthisとcall | gihyo.jp


    JavaScriptthis JavaScriptthis2 this this this this this function A(name){ this.name = name; } A.prototype.getThis=function(){ return this; }; var a = new A('aaa'); console.log(a); console
    第16回 JavaScriptのthisとcall | gihyo.jp
    mut00tum
    mut00tum 2015/01/20
    '実はJavaScriptにおいてthisは非常に簡単なルールで決定されます。そのルールとは,「呼び出した関数の手前(ドットの前)のオブジェクトがthisになる。'
  • JavaScript の this を理解する - tacamy--blog


    this  JavaScript  this    Java  JavaScript  使      new         this JavaScript  new 
    JavaScript の this を理解する - tacamy--blog
  • JavaScriptのthisの覚え方 - Qiita


    JavaScriptthis JavaScriptthis4 4  (window使) this  var hoge = "fuga"; window.foo = "bar"; // fuga+bar  console.log(this.hoge + "+" + this.foo); (function(){ // fuga+bar  console.log(this.hoge + "+" + this.foo); })(
    JavaScriptのthisの覚え方 - Qiita
  • JavaScriptの「this」は「4種類」?? - Qiita


    javascriptthis4 4this 4 4 this41234apply,call  this     // var myObject = { value: 10, show: function() { console.log(this.value); } } myObj
    JavaScriptの「this」は「4種類」?? - Qiita
  • 1