Uncaught TypeError: this.XXXXX is not a function

Here Insert Picture Description
See if you call the method is not in the sentence and not a function in the method,
such as

A(){
    a(){
		this.B
	}
}
B(){

}

A and B are the same level, this can not be a used, this refers to a straight of A
so

A(){
	var that = this
    a(){
		that.B
	}
}
B(){

}
Published 38 original articles · won praise 1 · views 5165

Guess you like

Origin blog.csdn.net/ShangMY97/article/details/103277353