HTML截取字符串

<script>
var i="sdfsdfsdfsdf";
i=i.substring(0,3);
alert(i);
</script>

原文地址:https://www.cnblogs.com/arvins/p/8665537.html