简体   繁体   English

加载页面和输入值

[英]Load page and input values

Is it possible somehow to open url, without loading it.是否有可能以某种方式打开 url,而不加载它。 Let me explain, I'm creating check-box which will let to create new log and automtically input values.让我解释一下,我正在创建复选框,它将允许创建新的日志并自动输入值。 I know how to take boxes and input value into them using javascript.我知道如何使用 javascript 将框和输入值放入其中。 But i don't know how to open that page without loading it on screen OR write that url that javascript would type values into that page.但我不知道如何打开该页面而不将其加载到屏幕上,或者编写该 url 以便 javascript 将值键入该页面。

The concept you should read up on is AJAX.您应该阅读的概念是 AJAX。 It sounds like it would fit your needs: post our data to a script, let the script do it's job, and work with the answer (or completely ignore the answer)听起来它符合您的需求:将我们的数据发布到脚本中,让脚本完成它的工作,然后处理答案(或完全忽略答案)

Since it seems that you are a beginner, maybe you might want to take a look at the jQuery Ajax documentation .既然您似乎是初学者,也许您可​​能想看看jQuery Ajax 文档

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

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