js使用cookie数组传值下面是代码示例赋值给cookiefunctionsetcookies(name,value){vardays=30此cookie将被保存30天varexp=newdate()newdate("december31,992023-04-15JavaScript220