如何在Javascript函数中传递和访问Perl var参数 [英] How can i pass and access a Perl var parameter in a Javascript function

查看:78
本文介绍了如何在Javascript函数中传递和访问Perl var参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


如何将Perl var($ val)作为参数传递给Javascript函数。


请任何人都可以帮助我...


ex:

Perl Code

--------- -------

Hi All,

How can i pass a Perl var($val) as a parameter to a Javascript function.

Please can any one help me out...

ex:
Perl Code
----------------

展开 | 选择 | Wrap | 行号

推荐答案

val)作为Javascript函数的参数。


请任何人帮帮我...


ex:

Perl Code

----------------
val) as a parameter to a Javascript function.

Please can any one help me out...

ex:
Perl Code
----------------
展开 | 选择 | Wrap | 行号


您可以使用模板系统,该系统允许您在模板文件中嵌入perl代码,以便为您处理此问题。在CPAN上查看模板系统,例如梅森模板工具包


--Kevin
You might be able to use a templating system that would allow you to embed perl code in the template file that could handle this for you. Check at CPAN for a templating system like Mason or Template Toolkit.

--Kevin


感谢Kevin的回复...


有没有其他方法不使用CPAN模块..因为我已经写了一个巨大的没有。代码行(Perl / CGI / HTML / Javascript)..所以,我不想改变整个事情。它会完全搞砸....


我搜索了很多东西......但我仍然无法得到解决方案..如果有人帮我这个。我真的非常感谢他
Thanks Kevin for the response...

Is there any other way with out using the CPAN module.. because I already wrote a huge no. of lines of code(Perl/CGI/HTML/Javascript).. So, I don''t want to change the whole thing. It will mess up completely....

I searched a lot to get that.. still I am unable to get the sol.. If any one help me this. really I will be very thank full to him


这篇关于如何在Javascript函数中传递和访问Perl var参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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