Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/email/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 返回某个字节长度的子字符串_Javascript - Fatal编程技术网

Javascript 返回某个字节长度的子字符串

Javascript 返回某个字节长度的子字符串,javascript,Javascript,如果我有一个字符串say“,请尝试以下代码: const text=”

如果我有一个字符串say
“,请尝试以下代码:

const text=”