I have used Google Closure to minify JS code. I want to do same but with ajax. Here I have created FIDDLE for better understanding, where minification is working fine without AJAX, but giving some error with AJAX request, where Im putting response in textarea.
`https://jsfiddle.net/64nsr3vp/`
You are using the wrong data format with the POST method for sending data to the server. Please check the updated fiddle link
'https://jsfiddle.net/bpkhydcr'
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.