实践出真知。正是:吾爱吾师,吾更爱真理。
[vite] warning: <div> cannot be child of <p>, according to HTML specifications. This can cause hydration errors or potentially disrupt future functionality.
151| <p class="welcome-txt">
152| <div> 马上注册完成!</div>
153| <div> 验证代码 发至 <span class="email">{{ regForm.email }}</span></div>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
154| </p>
155| <div class="item" >
Plugin: vite:vue
File: D:/gongzuokongjian/vue_test/src/views/validCode/index.vue
这个警告指出,你在
<p>
标签内嵌套了<div>
标签,这是违反 HTML 规范的。根据 HTML 规范,<p>
标签不能包含块级元素(例如<div>
)。
后台结果如下:
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@159f27be]
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@7809eb15] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@2083938508 wrapping com.mysql.cj.jdbc.ConnectionImpl@42cf839c] will not be managed by Spring
==> Preparing: SELECT COUNT( * ) FROM client_user WHERE (email = ?)
==> Parameters: 23******82@qq.com(String)
<== Columns: COUNT( * )
<== Row: 1
<== Total: 1
前后运行变化:
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@7809eb15]
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@29b00e02] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@1790117892 wrapping com.mysql.cj.jdbc.ConnectionImpl@42cf839c] will not be managed by Spring
==> Preparing: SELECT id,username,password,email,avatar,create_time,last_login_time FROM client_user WHERE (email = ?)
==> Parameters: 23******82@qq.com(String)
<== Columns: id, username, password, email, avatar, create_time, last_login_time
<== Row: 1, wy, 123456, 23******82@qq.com, , null, null
<== Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@29b00e02]
部分效果如下:
感谢大家的支持!最后,祝大家国庆节快乐!