是否可以将JavaScript变量分配给以Scriplet编写的变量? [英] Is it possible to assign a javascript variable to a varible written in scriplet?

查看:115
本文介绍了是否可以将JavaScript变量分配给以Scriplet编写的变量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设,

Suppose,

function abc(){    
var x=''100'';
var y=''200'';
var z=x+y;




在JSP时代,我可以编写以下代码段吗?




In JSP age can I write the following snippet of code?

<%
String i=z;
%>

推荐答案

是:)

根据您的问题,我认为您需要提前阅读一些内容.这是一些阅读jdbc和PostGreSQL的选项-请选择:
在Google中搜索:jdbc教程postgresql [ ^ ]

问候
Espen Harlinn
Yes :)

Based on your question, I think you have a bit of reading ahead of you. Here is a few options on reading up on jdbc and PostGreSQL - take your pick:
Search Google for: jdbc tutorial postgresql[^]

Regards
Espen Harlinn


否,javascript是客户端脚本,
并在服务器响应客户端后运行.
我想知道您是否可以使用< input type ="hidden"/>?
no, javascript is client script,
and its run after the server response to the client.
I wonder if you can use <input type="hidden"/>?


这篇关于是否可以将JavaScript变量分配给以Scriplet编写的变量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆