猫史档案馆


[box3]简单小知识:获取字符串

用户:Box3_是小黄人呀Box3_是小黄人呀查看:0 回复:3 评论:0 创建时间:2022-09-15T18:34:15


var a = '122' 
console.log (a.length) //获取字符总数
console.log (a[0]) //获取对应字符串

/*不要直接使用第3行,需要第2行辅助*/

又水了一期~


回复

上一页1 页 / 共 1下一页
星星上的雪花星星上的雪花

xxs的无语操作+1

点赞2


评论


AucunAucun

imgsrc="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/71/bs2_thumb.gif"alt="emotion_喵"

点赞0


评论


囧仙_official囧仙_official

每日一蚌1/1😂

点赞1


评论