绑定对象
$(list).each(function(){
// alert(list[i]);
var li = '
$('#first_side_right ul').append(li);
$('#first_side_right ul li:last').data("noteBook",this);
});
获取绑定对象
var checked_li = $('#first_side_right .checked').parent();
console.log(checked_li);
var notebook = checked_li.data("noteBook");
console.log(notebook+"sdf");
浏览器错误信息
[prevObject: o.fn.init[0], context: document, jquery: "2.1.0", constructor: function, selector: ""…]context: documentlength: 0prevObject: o.fn.init[0]__proto__: o[0]
local.js:166 undefinedsdf
note.js:50 Uncaught TypeError: Cannot read property 'cn_notebook_id' of undefined