11:
take into account that when browsing a web page, the number of logos may also increase when the page is not refreshed.
how do I update my logo count in real time?
11:
take into account that when browsing a web page, the number of logos may also increase when the page is not refreshed.
how do I update my logo count in real time?
if it is only implemented in the foreground, you can only use a timer and keep requesting, which consumes too much memory
Real-time updates are basically based on socket protocol. You can take a look at
. message should be recorded in the database. When you read the message, you should send a ajax
request to mark the message as read, and then use ajax
to get the status of the message. Several messages are unread and then displayed.
to display the real-time data of unread messages, you can use websocket
. When the message is received by the background, it is pushed over, and then update state
is fine.
therefore, ajax
request is used when actively manipulating data, and websocket
you can use the setstate method. This will be updated in time
Hello, is the problem solved? I also encountered this problem, ask
Hello, have you ever added a logo to the cooking menu?
Previous: Flask-sqlalchemy insert Datagram error sqlalchemy.exc.OperationalError
Next: The vue child component modifies the value of the parent component
how does react ant use custom form validation? 1. Code const Login = ( { loading, dispatch, form: { getFieldDecorator, validateFieldsAndScroll }, } ) => { function handleOk() { validateFieldsAndScroll((error...
for projects done with the ant design pro framework, there is a requirement that when a month is selected, all Sundays of the month are automatically generated and displayed. ...
A bunch of errors were reported when the project done with the ant design pro framework was completed and packaged ...
use frames umi+dva+antd question after sending a action using server sorting. The order order of the first sort is descend , and then it has been descend no matter how much you click to switch . troubleshooting process looked at the sour...