摘要: 四.字符串1.多了2个新方法startsWithendWith <script> let str='1.png'; if(str.endsWith('.txt')){ alert('文本文件'); }else if(str.endsWith('.jpg')){ alert('JPG图片'); }el 阅读全文
posted @ 2019-06-28 21:06 沐雨清晨 阅读(95) 评论(0) 推荐(0)