简体   繁体   中英

sending and getting parameters with jquery/coffeescript

My situation is that i need to redirect user to specific page. page which has two inputs. normally they are blank and just wait to be filled. but when this redirection mentioned before is performed:

window.location.replace('new')

then i need those inputs to be filled. Question is how can i detec if i'm somewhere because of redirection. i was thinking about sending some special params and read them everytime i'm in this place with inputs. anybody knows how to send and read parameters with jquery/coffeescript?

怎么样诸如window.location.replace('new?arg1='+arg1+'&arg2='+arg2)

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