我有IE的問題在瀏覽器的所有版本(誰不)。它適用於其他瀏覽器。IE(所有版本)以下的href,而不是執行JS
<a href="<?php echo base_url() ?>pages/delete_page/<?php echo $row->id; ?>" class="delete" data-uid="<?php echo $row->id; ?>">
<i class="icon-cancel"></i><span class="delete_tooltip">delete page</span>
</a>
這是我的<a>
標籤,它非常簡單。
基本上IE是繼href和不執行JS的。如果我從href中刪除鏈接,它會將其發送回主頁。
我使用的插件加載一個模式對話框就像我說的,一切都在每一個瀏覽器工作正常。
$('.delete').click(function(e) {
console.log($('#modal-'+$(this).data('uid'))); // Button which will activate our modal
$('#modal-'+$(this).data('uid')).reveal({ // The item which will be opened with reveal
animation: 'fadeAndPop', // fade, fadeAndPop, none
animationspeed: 400, // how fast animtions are
closeonbackgroundclick: false, // if you click background will modal close?
dismissmodalclass: 'modal_cancel' // the class of a button or element that will close an open modal
});
return false;
});
這就是調用該鏈接插件的JS。
任何幫助將不勝感激。
哦,非常好,謝謝。我不知道IE做到了。今天學到了一些東西。 –
控制檯未在IE中定義 –
@chumkiu:如果您在加載頁面之前已經開啓了開發工具,則只能在IE中定義「控制檯」。這是愚蠢的。 –