Javascript jquery标记与IE9不兼容

Javascript jquery标记与IE9不兼容,javascript,jquery,internet-explorer,internet-explorer-9,tag-it,Javascript,Jquery,Internet Explorer,Internet Explorer 9,Tag It,我发现jquery标记it插件有问题,位于: 我想使用AJAX获取数据,只传递id,同时在标记字段中保留标签以显示 除了IE9(我还没有尝试过更高的版本,因为我需要支持IE9)之外,它在所有主流浏览器(chrome、FF、safari)中都能完美工作 这是我的密码: $("#myTags").tagit({ placeholderText: window.inviteTxt, fieldName: "tag[]", //mi

我发现jquery标记it插件有问题,位于:

我想使用AJAX获取数据,只传递id,同时在标记字段中保留标签以显示

除了IE9(我还没有尝试过更高的版本,因为我需要支持IE9)之外,它在所有主流浏览器(chrome、FF、safari)中都能完美工作

这是我的密码:

$("#myTags").tagit({
            placeholderText: window.inviteTxt,
            fieldName: "tag[]",
            //minLength: 2,
            autocomplete: {
                   delay: 0,
                   minLength: 2,
                   source: function( request, response ) {
                         $.ajax({
                             url: "/service/search.php",
                             dataType: "json",
                             data: {
                                 cmd: "getTags",
                                 txt: request.term
                             },
                             success: function( data ) {
                                 response( $.map( data , function( item ) {
                                     return {
                                         label: item.label,
                                         value: item.uid
                                     }
                                 }));
                             }
                         });
                     },
                     select : function(event,ui) {
                         window.itemId = ui.item.value;
                         console.log(window.itemId);
                         $("#myTags").tagit("createTag", ui.item.label);
                         return false;
                     },
                     focus: function(event, ui) {
                            window.itemId = ui.item.value;
                            $(this).val(ui.item.label);
                            return false;
                          },
                },
            allowSpaces:true,
            beforeTagAdded: function(event, ui) {
                // do something special


                //if(!contains(window.data,ui.tagLabel)) return false;
            },
            afterTagAdded: function(event, ui) {
                console.log(window.itemId);
                if (window.itemId) {
                    $(ui.tag).find('input').attr('name', "tag[" + window.itemId+ "]");
                    window.itemId = null;

            }
        }
});
在所有其他浏览器中,该值作为键在标记数组中传递,但在IE9中,该值仅为0

我的代码中是否有明显的错误,或者是更深层次的错误

提前谢谢。

我发现了问题

显然,我使用了javascript命令“console.log()”,由于某种原因导致IE崩溃


谢谢你,IE.

那么IE9是否有任何错误?