How do I download JavaScript string as a file

前端 未结 8 810
太阳男子
太阳男子 2021-01-13 18:52

Application requests KML data through AJAX from server. This data is stored in javascript variables, and displayed in Google Earth plugin.

In javascript, how do I

8条回答
  •  甜味超标
    2021-01-13 19:30

    You might want to check this out: it's called Downloadify. It uses a mix of Javascript and Flash, and can save a string in pretty much any format. Try out the demo and see for yourself!

提交回复
热议问题