warning或许是语法错误?后端标红消失后,前文报错或影响不大

实践出真知。正是:吾爱吾师,吾更爱真理。 

[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]

部分效果如下:

感谢大家的支持!最后,祝大家国庆节快乐! 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值