我有使用$我下面的代码中(这)获得所需值的一些问题:的jQuery越来越需要从价值返回的对象
....
open: function() {
console.log('Popup is opened');
console.log($(this).get(0).src);
},
....
我也试过:
....
open: function() {
console.log('Popup is opened');
console.log($(this)[0].src);
},
....
但我似乎没有正确的结构以获得该值。
的对象这是:
{
"0": {
"isIE7": false,
"isIE8": false,
"isLowIE": false,
"isAndroid": false,
"isIOS": false,
"supportsTransition": true,
"probablyMobile": false,
"popupsCache": {
},
"items": [{
"el": {
"0": {
"jQuery111108245181320528183": 1
},
"context": {
"jQuery111108245181320528183": 1
},
"length": 1
},
"src": "http://linkishere.com/Dolphin.jpg",
"type": "image",
"index": 0,
"parsed": true,
"img": {
"0": {
"jQuery111108245181320528183": 20
},
"context": {
"jQuery111108245181320528183": 20
},
"length": 1
},
"hasSize": true,
"preloaded": true
}],
Etc etc.....
我缺少什么?
你猜对了感谢阿南特。 ! – StealthRT 2014-09-04 05:08:16