<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title> New Document </title> <script type="text/javascript"> var fruit = new Array(3); fruit[0] ="org"; fruit[1] ="apple"; fruit[2] ="bana"; document.write(fruit.join(",")); </script> </head> </html>
感觉这个函数是split函数的逆。
时间: 2024-11-04 20:29:42