This article mainly introduces the Dailog Based on BootStarp. For more information, see
Introduction to BootStrip
Bootstrap, from Twitter, is a popular front-end framework.
Bootstrap is based on HTML, CSS, and JAVASCRIPT. It is concise and flexible, making Web development faster. It was developed by Twitter designer Mark Otto and Jacob Thornton. It is a CSS/HTML framework.
Bootstrap provides elegant HTML and CSS specifications, which are written by the dynamic CSS language Less. Since its launch, Bootstrap has become a popular open-source project on GitHub. It is used by Breaking News of NASA's MSNBC (Microsoft National Broadcasting Corporation. Some domestic mobile developers are familiar with frameworks, such as the WeX5 front-end open-source framework, which is also based on Bootstrap source code for performance optimization.
1.1. Help document keywords
Boostrap modal box oaoDailog
1.2. application scenarios
When you click a button on the webpage, you must receive a prompt for confirmation. You can click the OK button to continue the operation, or you can click the cancel button to cancel the operation;
When you click View on a webpage and the displayed data needs to be displayed in the pop-up box, you can use oaoDailog
1.3. Schematic diagram
Modal, jquery1.9 Based on boostrap3.0
1.4. Instructions for use
Why is oaoDailog required?
A. because of the modal provided by boostrap3.0, you must first define a modal p hidden code on the page. The user writes the content to be displayed to this p. If a page has multiple modal boxes, you need to write multiple hidden modal box p to hide the code, which is unnecessary.
B. because the default modal is not confirmed or canceled, we can write two buttons in the hidden p of the modal box, however, we also need to write js to monitor and confirm the operation performed after the button is clicked, and confirm the operation performed by the button, which is related to the data clicked by the user at the time of pop-up and how the data is transmitted, bootstrap is not provided for us.
C. oaoDailog1.0.0 is used to solve the problem of inconvenient use of bootstrap modal boxes and code redundancy.
:
Start to use
1. Introduce oaoDailog. js
Code: