Skip to content

in $.ajax() how to read this.id #7

@raymondZhong

Description

@raymondZhong

in $.ajax() how to read this.id

var PageLoader = my.Class({
index:0,
count:0,
id:$.uuid(),
constructor: function(url) {
this.url = url;
var _self = this;

         $.ajax({
               url: this.url,
               success: function(msg){
                 alert(this.id)      // this is  error
               }
            });

    } 

});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions