给js文件传入参数
来源:互联网 发布:2015进出口数据 编辑:程序博客网 时间:2024/04/27 14:49
在网上搜了一下,感觉有个方法很好
<head>
<script id="news_head_js" type="text/javascript" src="/pf/common/js/news/news_head.js" param="${connProperties.fileServer}"></script>
</head>
in the file news_head.js, we can use this code to get the parameter
var scriptParam = document.getElementById('news_head_js').getAttribute('param');
- 给js文件传入参数
- 给js文件传递参数
- 给js文件传参数
- 给js文件传参数
- 给js文件传参数
- 如何给Makefile 传入参数
- 布局文件传入参数
- 多种思路给js文件传递参数
- JS教程:给JavaScript文件传递参数
- 给js文件加一些参数
- 给js文件传参数(详解)
- 多种思路给js文件传递参数,参数,js参数,js文件参数,js文件传参数
- 批处理调用exe文件,并给exe传入参数的方法
- 给一个CALL传入适当的参数
- eclipse java 给main函数传入参数
- 给AJAX回调函数传入参数
- 如何给shell脚本传入参数小结
- 给手势传入多个参数
- 解决svn的working copy locked并且cleanup恢复不能的情况
- 10000内的素数(调用函数)
- linux 按文本查找文件
- DHCP协议和dhcpcd源码分析
- 导入android源码有错,R.java文件不能自动生成解决方法
- 给js文件传入参数
- Win32下对多个的线程句柄的关闭的控制(下)
- hbase的Java简单应用
- 如何复制百度文库中的文章。。。
- C#中Trim()、TrimStart()、TrimEnd()的错误认识
- C#简单多线程使用(同步和优先权)
- Notice …Undefined variable…
- flv封装格式详解
- 在Excel的交叉表中定位数据(亲自实践)