暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

今日分享 · HTML && JS

焱云 2021-12-22
336

  没带电脑,长话短说吧。看代码:

<html>

    <head>

        <title>HTML示例</title>

    </head>

    <body>

 <text>Hello,world!</text>

    </body>

<script>

var str = "Hello,world!";

var str64 = window.btoa(str);

console.log("字符串是:"+str);

console.log("经base64编码后:"+str64);

</script>

</html>

文章转载自焱云,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论