encodeURIComponent
<script type="text/javascript">
document.write(encodeURIComponent("全景图")+ "<br />")
</script>
结果是%E5%85%A8%E6%99%AF%E5%9B%BE
编码是Utf-8的,我想转化为GB2312要怎么实现
encodeURIComponent
<script type="text/javascript">
document.write(encodeURIComponent("全景图")+ "<br />")
</script>
结果是%E5%85%A8%E6%99%AF%E5%9B%BE
编码是Utf-8的,我想转化为GB2312要怎么实现