timneutkens / magento2-module-twitterbootstrap-js
此包已被废弃,不再维护。未建议替代包。
将CDN上的Twitter Bootstrap JavaScript作为require.js模块垫片添加。当CDN离线时回退到本地版本。
3.3.10
2018-04-18 16:53 UTC
This package is not auto-updated.
Last update: 2024-06-08 17:43:32 UTC
README
将CDN上的Twitter Bootstrap JavaScript作为require.js模块垫片添加。当CDN离线时回退到本地版本。
安装
-
使用
composer require weprovide/magento2-module-twitterbootstrap-js
安装最新版本。如果您想安装特定的Twitter Bootstrap版本,可以使用以下命令:
使用以下命令安装:
composer require timneutkens/magento2-module-twitterbootstrap-js:<版本号>
-
运行
bin/magento setup:upgrade
-
运行
bin/magento setup:static-content:deploy
可用版本
- 3.3.7
使用方法
有关使用示例,请参阅 Twitter Bootstrap 网站
require(['jquery', 'jquery.bootstrap'], function ($) { $('.element').carousel() });