In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
The jQuery plug-in provides a simple but fully customizable message notifying how Notify js is used. In response to this question, this article describes in detail the corresponding analysis and solutions, hoping to help more partners who want to solve this problem to find a more simple and easy way.
Notify.js implements convenient and fast message management, so that you can publish multiple messages, users will see a message, and when one message is closed, it will continue to display the next message.
Notify.js import file:
/ / if you need the message display of type=1, you must introduce bootstrap
12345
Notify.js uses:
/ / you can declare a message anywhere. Remember to select the type of the message.
/ / default type is 2, that is, H5Notification reminder
/ / Notification reminders can only be generated when there is a server.
Varms1=newNotify ("info", "Thisisamessage!", msg_click_fn,1)
/ / msg_click_fn is the event 12345 of the click message
Notify.js parameters:
The parameter of the constructor is status,text,click_fn,type,id attention order
Parameter name
Parameter description
Status
The status of the message, which is used to change the style of the type=1 message and the tag of the type=2 message. Value: info/danger/warning/success, default: info
Text
The content of the message. Default: "
Click_fn
The function that will be executed by clicking on the message. Default: null
Type
Type, value: 1 bootstrap 2 position 1 is the message style of bootstrap, 2 is the reminder of H5Notification. Default: 2
Id
The id of the message, independent of the id of the Dom element of the message, is only used to mark the message. For example, it is used to feed back the read status to the database. Default: 1
This is the answer to the question about how the jQuery plug-in provides a simple but fully customizable message to inform Notify js how to use it. I hope the above content can be of some help to you. If you still have a lot of doubts to solve, you can follow the industry information channel for more related knowledge.
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.