In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article is about how to use bootstrap in vue. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
I. introduction of jquery
Steps:
1. Install jquery
$npm install jquery-save-dev
2. Add content to webpack.config.js
+ const webpack = require ("webpack") Module.exports = {entry:'. / index.js', output: {path: path.join (_ _ dirname,'. / dist'), publicPath:'/ dist/', filename: 'index.js'}, + plugins: [new webpack.ProvidePlugin ({jQuery:' jquery', $: 'jquery'})]}
3. Add content to the entry file index.js
Import $from 'jquery'
4. Test whether the installation is successful and see if the '123' can be popped up.
Hello world! $(function () {alert (123);}); export default {}
Second, introduce Bootstrap
1. Install Bootstrap
$npm install-save-dev bootstrap
2. Introduce relevant information into the entry file index.js
Import'. / node_modules/bootstrap/dist/css/bootstrap.min.css';import'. / node_modules/bootstrap/dist/js/bootstrap.min.js'
3. Add a piece of Bootstrap code
Left Middle Right
4. Run to see the effect these buttons have become Bootstrap button groups
Thank you for reading! This is the end of this article on "how to use bootstrap in vue". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.