摘要:
placeholder属性作用 1.介绍 该提示会在输入字段为空时显示,并会在字段获得焦点时消失。 注释:placeholder 属性适用于以下的 <input> 类型:text, search, url, telephone, email 以及 password。 示图: <!DOCTYPE ht 阅读全文
posted @ 2022-04-09 21:58
AlexEvans
阅读(572)
评论(0)
推荐(0)
摘要:
一、for loop for (let i = 0; i < products.length; i++) { console.log(products[i]); } 支持循环中断,可以用break中断 二、forEach()循环 forEach()是Array.prototype上的方法,可以使用它 阅读全文
posted @ 2022-04-09 17:51
AlexEvans
阅读(130)
评论(0)
推荐(0)

浙公网安备 33010602011771号