想把控制台输出的对象数组copy到编辑器中,但是copy之后编辑器就变成了这样
<script type="text/javascript">
var json = [Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object]0: Object1: Object2: Object3: Object4: Object5: Object6: Object7: Object8: Object9: Object10: Object11: Object12: Object13: Object14: Object15: Object16: Object17: Object18: Object19: Objectlength: 20__proto__: Array[0]
</script>
有什么方法copy吗?
先转成字符串
后面就很简单了