我在其中一个项目中实现了便签功能,并且发现了与浏览器兼容性相关的问题。我的代码在IE8中不起作用,但在其他浏览器中可以正常工作。jQuery - 对象不支持IE8中的此属性或方法
我得到的错误是:
Message: Object doesn't support this property or method
Line: 45
Char: 3
Code: 0
URI: http://dev.mesocial.co/orange_theme/js/sticky_note_func.js
这些都是没有40至50之间的线路:
var moved = function(note) {
// added by rupesh
// alert(JSON.stringify(lastCreatedNoteId));
var passId = note.id
if(lastCreatedNoteIdForJs.indexOf(note.id) != -1)
passId = lastCreatedNoteId[note.id];
// till here ///////
$.post(SITE_URL+'/dashboard/create-sticky-note/act/moved/sticky_note_id/'+passId+'/pos_x/'+note.pos_x+'/pos_y/'+note.pos_y,
function(data) {
//alert(data);
});
什么问题可能是任何帮助将非常感激。
感谢克里斯托弗这对我的作品。 – 2013-03-04 09:21:42
@EktaPatel很高兴工作!您应该考虑接受对您最有用的答案,方法是单击该问题左侧的复选标记。你可以阅读更多关于为什么你应该接受一个答案[这里](http://stackoverflow.com/faq#howtoask)。 – 2013-03-04 10:09:56