简体   繁体   English

使用jQuery / CoffeeScript发送和获取参数

[英]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? 有人知道如何使用jquery / coffeescript发送和读取参数吗?

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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