【发布时间】:2018-03-10 04:32:39
【问题描述】:
【问题讨论】:
标签: magento paypal magento2 payment-method
【问题讨论】:
标签: magento paypal magento2 payment-method
如果您尝试使用 jQuery 调整 CSS 组件,就像在 M1 中所做的那样 - 这将不再适用于 M2,因为 M2 使用 RequireJS。
相反,您应该在所需的 PHTML 文件中添加如下内容:
<script>
require([
"jquery"
], function ($) {
// Perform desired action(s) on the selector(s) you're interested in
// For example:
$("#UiElementOfInterest").hide();
});
});
</script>
希望对您有所帮助! :)
【讨论】: