码迷,mamicode.com
首页 > 其他好文 > 详细

21-4indexOf

时间:2019-09-07 13:31:40      阅读:73      评论:0      收藏:0      [点我收藏+]

标签:lis   bsp   font   utf-8   title   one   oct   family   index   

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        body {
            font-family: "Microsoft YaHei", serif;
        }

        body, dl, dd, p, h1, h2, h3, h4, h5, h6 {
            margin: 0;
        }

        ol, ul, li {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        img {
            border: none
        }
    </style>
</head>
<body>

<script>
    let a = "gfveqhvq";

    console.log(a.indexOf("h"));

    // 找不到返回-1
</script>
</body>
</html>

 

21-4indexOf

标签:lis   bsp   font   utf-8   title   one   oct   family   index   

原文地址:https://www.cnblogs.com/zhangyu666/p/11480098.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!