console.log(this)
抛出:
Object
eles: Object
container: x.fn.x.init[1]
ele: x.fn.x.init[1]
0: div.cropMain
context: document
length: 1
prevObject: x.fn.x.init[1]
selector: ".two .cropMain"
__proto__: Object[0]
img: x.fn.x.init[1]
如何获取选择器值:“.two .cropMain”?
最佳答案
您可以像这样访问它:
this.eles.selector
关于javascript - jQuery:获取对象值?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18138811/