Can I change the context of javascript “this”?

后端 未结 3 527
深忆病人
深忆病人 2020-12-15 17:03
var UI$Contract$ddlForm_change = function() {

    //\'this\' is currently the drop down that fires the event
    // My question is can I change the context so \"thi         


        
3条回答
  •  我在风中等你
    2020-12-15 17:44

    No, it's not possible.

    You can call a method with a specified value for this (using method.apply()/method.call()) but you cannot re-assign the keyword, this.

提交回复
热议问题