thatã«æãã馳ãã JavaScriptã«ãã㦠that = this ã¨ã self = this ãªãã¿ã¼ã³ãé »ç¹ã«ä½¿ãã¨ãä½æ¥è ã®çæ§ãä¿è¨¼ãããªãå ´åã«ä¸è¨ã«ç¤ºã2ç¹ã®åé¡ãèµ·ãããå¾ãã¨æã£ã¦ããã ããã¼ãã©ããªã®ããªã¼ããã¼ããã¨æããªããæ¸ãã¦ã¿ãã 1.ã¡ã½ããåå²ãé©åã«ãããªãããªãé°å²æ° ã¡ãã£ã¨æ¥µç«¯ããç¥ããªãããBackboneã£ã½ãã³ã¼ããä¾ã«ãã¦ã¿ãã initialize: function() { var that = this; this.listenTo(this.entity, 'success', function() { var bar = that.foo(); that.$el.find('.qux').text(bar); // long. // long.. // logic... }); this.entity.execute(
{{#tags}}- {{label}}
{{/tags}}