当前位置:网站首页>[IVX junior engineer training course 10 papers to get certificates] 09 chat room production
[IVX junior engineer training course 10 papers to get certificates] 09 chat room production
2022-07-02 01:14:00 【1_ bit】
Catalog
【iVX Junior engineer training course 10 Textual evidence 】01 understand iVX Complete the New Year greeting card
【iVX Junior engineer training course 10 Textual evidence 】02 Numerical binding and adaptive website production
【iVX Junior engineer training course 10 Textual evidence 】03 Events and guessing numbers games
【iVX Junior engineer training course 10 Textual evidence 】04 Canvas and me iVX Group photo
【iVX Junior engineer training course 10 Textual evidence 】05 Canvas and aircraft war game production
【iVX Junior engineer training course 10 Textual evidence 】06 Database and services
【iVX Junior engineer training course 10 Textual evidence 】07 08 News page making
【iVX Junior engineer training course 10 Textual evidence 】09 Chat room production
For high score promotion, please check the column :
iVX Beginner to master
Big talk IVX From actual combat to mastery
One 、 link
stay iVX Make one in Many people / Single person Instant messaging is simple , Next, take a multiplayer chat room as an example , Introduce the practice of chat room .
iVX Creating a multiplayer chat room requires a link component :

Through this component, the production of chat room can be completed .
Two 、 Chat is production
2.1 Page drawing
The page drawing object tree and its page examples are as follows :

page 1:
The chat room :
2.2 Page drawing

First of all, we are on the page 1 in , Click to enter the chat room and record the text in the input box , And store the text value in a variable , Then jump to the page :
Then when the chat page displays , Need to give a display event , This event uses the connection component as the action object , Level current user information , After the grade is successful, you can manually enter a room ID, Finally, after creating or adding a room , To assign to ID The room sends a message , Message column names can be defined by themselves :
Then give the link an event , When any message is received , Use an array of objects “ Information variables ” Store received room messages , The message content value will pop up automatically by clicking the input box ; When the information content is stored , Use a variable “ Combined variables ”, Format the content twice , And finally add the formatted content to the end of the value information set object array :
It should be noted here that these object arrays receive content values corresponding to their receiving format , These object array column names are as follows :


next , Use the loop to traverse the contents of the information set object array :
The text created by the loop needs data binding :

Finally, add an event to the send button :
Finally, the chat room can be made .
边栏推荐
- 学习笔记24--多传感器后融合技术
- The pain of Xiao Sha
- Iclr2022 | spherenet and g-spherenet: autoregressive flow model for 3D molecular graph representation and molecular geometry generation
- 关于ASP.NET CORE使用DateTime日期类型参数的一个小细节
- Comprehensive broadcast of global and Chinese markets 2022-2028: Research Report on technology, participants, trends, market size and share
- Global and Chinese market of picture archiving and communication system (PACS) 2022-2028: Research Report on technology, participants, trends, market size and share
- Global and Chinese markets of edge AI software 2022-2028: Research Report on technology, participants, trends, market size and share
- Sql--- related transactions
- 什么是商业养老保险?商业养老保险安全靠谱吗?
- Creating logical volumes and viewing and modifying attributes for AIX storage management
猜你喜欢

SQL injection for Web Security (2)

2022 safety officer-b certificate examination practice questions simulated examination platform operation

Tensorflow tensor convolution, input and convolution kernel dimension understanding

ACM tutorial - quick sort (regular + tail recursion + random benchmark)

2022 operation of simulated examination platform for melting welding and thermal cutting work license

Friends circle community program source code sharing

Advanced skills of testers: a guide to the application of unit test reports

2022 low voltage electrician examination questions and answers

969 interlaced string

With the acquisition of Xilinx, AMD is more than "walking on two legs" | Jiazi found
随机推荐
Picture puzzle wechat applet source code_ Support multi template production and traffic master
Daily work and study notes
XMIND mind map
You probably haven't noticed the very important testing strategy in your work
How does schedulerx help users solve the problem of distributed task scheduling?
Global and Chinese markets for maritime services 2022-2028: Research Report on technology, participants, trends, market size and share
【八大排序③】快速排序(动图演绎Hoare法、挖坑法、前后指针法)
Exclusive delivery of secret script move disassembly (the first time)
Advanced skills of testers: a guide to the application of unit test reports
Docker安装Oracle_11g
Global and Chinese markets for supply chain strategy and operation consulting 2022-2028: Research Report on technology, participants, trends, market size and share
Docker installing Oracle_ 11g
Basic usage of three JS high-order functions --filter---map---reduce
学习笔记2--高精度地图定义及价值
Based on Simulink and FlightGear, the dynamic control of multi rotor UAV in equilibrium is modeled and simulated
Sql--- related transactions
Global and Chinese markets of beverage seasoning systems 2022-2028: Research Report on technology, participants, trends, market size and share
King combat power query renamed toolbox applet source code - with traffic main incentive advertisement
Weather forecast applet source code weather wechat applet source code
MySQL application day02