服务器变量和.js文件.是否有可能? [英] Server variables and the .js file. Is it possible?

查看:87
本文介绍了服务器变量和.js文件.是否有可能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在外部.js文件中调用服务器变量?

is it possible to invoke server variables in the external .js file ?

好的,我解决了问题,谢谢您的帮助! :)

OK, I resolved the problem, thank for Your help ! :)

推荐答案

不,您可以使用内部JS

No, internal JS you can

<script>
var i = <%= ServerSideVar %>
</script>

这篇关于服务器变量和.js文件.是否有可能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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