duanqi6007 2018-01-19 17:00
浏览 43

Magento 2.1中的Javascript冲突

I am using an External javascript in the magento2 Block. That external javascript is calling its own jquery library. And this is conflicting with the Magento jquery.

Now, am getting this errors:

  1. Uncaught TypeError: $.widget is not a function

  2. Uncaught TypeError: Cannot read property 'timepicker' of undefined

  3. Uncaught TypeError: Cannot read property 'initObserversForPopup' of undefined

Please help me Resolving this issue.

I also try to add this external js at the Head section and at the end of body tag.

Regards,

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
    • ¥15 有了解d3和topogram.js库的吗?有偿请教
    • ¥100 任意维数的K均值聚类
    • ¥15 stamps做sbas-insar,时序沉降图怎么画
    • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
    • ¥15 关于#Java#的问题,如何解决?
    • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
    • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
    • ¥15 cmd cl 0x000007b
    • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line