Convert JavaScript variable value to csv file

后端 未结 2 928
猫巷女王i
猫巷女王i 2020-12-03 03:42

I have a comma separated variable in my .js file, for example:

var out=\'\';
out+=\"1,val1,val2,val3,val4\\n\";
out+=\"2,val1,val2,val3,val4\\n\";
out+=\"3,v         


        
2条回答
  •  自闭症患者
    2020-12-03 04:00

    there is jquery plugin for output file at the client side without server side interaction,

    https://github.com/dcneiner/Downloadify

提交回复
热议问题