Javascript function objects, this keyword points to wrong object

前端 未结 4 1241
梦谈多话
梦谈多话 2021-01-19 19:26

I\'ve got a problem concerning the javascript \"this\" keyword when used within a javascript functional object. I want to be able to create an object for handling a Modal po

4条回答
  •  攒了一身酷
    2021-01-19 19:46

    Everyone who encounters problems with "this" in JavaScript should read and digest this blog post: http://howtonode.org/what-is-this

    You would also do well to Google "Douglas Crockford" and watch some of his (free) videos on the subject.

提交回复
热议问题