本文介绍了在上传之前压缩客户端的可变数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我有一个变量reportContent,因为我有xml数据。现在我需要将变量上传到服务器。问题是xml数据的大小很大。因此,在将其上传到服务器之前,我会倾向于在客户端压缩数据(可能使用JQuery)。对此有什么解决方案吗?我搜索了很多,但我找不到任何解决方案。任何帮助表示赞赏。 预先谢谢 Sibeesh http://sibeeshpassion.com/ 解决方案 最后我找到了通往实现这一点,我写了一篇关于此的文章。在这里,我将分享该文章链接,供其他可能认为有用的人使用。 http://www.c-sharpcorner.com/UploadFile/65794e/compress-xml-string-variables-in-client-side-和-export-in / 最基本的问候 Sibeesh http://sibeeshpassion.com/ Hi ,I have a variable "reportContent", In that I have xml data. Now i need to upload the variable to the server. the problem is that xml data is huge in size. So before uploading it to the server, I would lilke to compress the data in the clientside (may be with JQuery). Is there any solution for this. I have searched a lot, but i could not find any solution. Any help is appreciated.Thanks In AdvanceSibeeshhttp://sibeeshpassion.com/ 解决方案 Finally I have found the way to achieve this, and I wrote an article regarding this. Here I am sharing that article link for the use of others who may find it is useful.http://www.c-sharpcorner.com/UploadFile/65794e/compress-xml-string-variables-in-client-side-and-export-in/Kindest RegardsSibeeshhttp://sibeeshpassion.com/ 这篇关于在上传之前压缩客户端的可变数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-20 07:47
查看更多