jQuery:获取对象值?

时间:2013-08-09 01:25:05

标签: javascript jquery object

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]

如何获取选择器值:“。tw .cropMain”?

1 个答案:

答案 0 :(得分:4)

你可以像这样访问它:

this.eles.selector