我有一個JavaScript功能,它不會觸發頁面刷新。當我從另一個頁面導航到頁面時,它起作用,但如果刷新頁面,則失敗。我的javascript功能不會觸發頁面刷新
所有此功能確實將頁面中的一個元素的高度分配給另一個元素的高度(如果它們都存在)。
jQuery(document).ready(function ($) {
if ($(".Video_Pane iframe").length && $(".Image_Pane img").length) {
$(".Video_Pane iframe").height($(".Image_Pane img").height())
}
}
任何想法?控制檯不顯示任何有關此錯誤
您可以設置一個[最小,完整且可驗證](http://stackoverflow.com/help/mcve)示例的[fiddle](https://jsfiddle.net)嗎? – clinei