我为客户购买了一个 Magento 扩展,并且该扩展在代码上应用了一个该死的 html 锚(该扩展有一个地穴,所以我无法访问代码),我需要删除它。看看我通过按 Ctrl + U 查看源代码得到了什么:
<script type="text/javascript">
Event.observe(window, 'load', function() {
$('processing-cerebrum-all-observer-AdminhtmlDashboardIndexLicenseProcessor').hide();
window.location.hash="LicenseExpireChart";
});
</script>
<a name="LicenseExpireChart"></a>
这真的让我很烦,因为我想看到仪表板页面的顶部,页面加载后它被迫滚动到锚点。如何使用 javascript/jquery 完全删除此代码?
谢谢。