1

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”?

4

1 回答 1

4

您可以像这样访问它:

this.eles.selector
于 2013-08-09T01:26:48.297 回答