简体   繁体   中英

How to get Google Closure response with ajax

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM