0
我想實現以下我的代碼在velocity模板中使用jquery,但jQuery並沒有響應。我正在使用速度1.5jQuery不能在速度1.5工作
請提供解決方案。
<script src="/CostTrackerReporting/WebContent/js/jquery-3.2.1.min.js"> </script>
<script>
$.noConflict();
$(document).ready(function(){
$("div.test").replaceWith("<h1>TEST</h1>");
});
</script>
<div id="test">
<p>TETSIGN</p>
</div>
我嘗試了你的建議,但它也沒有工作... – Shubhra
「不工作」是不是很豐富。怎麼了? –
@Shubhra你可以看看控制檯(例如,通過右鍵單擊 - >檢查 - >控制檯),並告訴是否有錯誤信息? – Gegenwind