复制代码 代码如下:
<script>
alert('0123456789'.replace(/(\d)/g, function ($1){return "abcdefghij".split("")[$1];}));
</script>
复制代码 代码如下:
<script>
alert('0123456789'.replace(/(\d)/g, function ($1){return "abcdefghij".split("")[$1];}));
</script>