在serverlet 中用javascrpt 传参到html页,传字母时出现未定义错误,传数字没问题
代码:
serverlet中
String model=(String) row.getValue("MODEL");
" <td> <a href='javascript:void(0);' onclick='editData("+model+");'>编 辑 </a> ......
window._ = function(key) { return Butterlate.gettext(key); };
window.__ = function(key,replacements) { return Butterlate.vgettext(key,replacements); };
这两行代码中,window._和window.__什么意思??? ......
function click_it()
{
////get_xy();
$("move_div").style.position="absolute";
$("move_div").style.left=window.event.clientX;
$("move_div").style.top=window.event.clientY;
setInterval(click_it,20); ......
JScript code:
<html>
<head>
<title>ManualDistribute</title>
<script type="text/javascript">
function changeConfirmVol(obj,num)
{
alert(obj.value);
alert(num);
alert(obj.nex ......
void CWEHelperDlg::OnOK(){
CString code;
//调用VBSCRIPT,能弹出消息框,也能正确返回 hello
code = "function main()\r\n\tMsgBox \"ok\"\r\n\tmain=\"hello\"\r\nend function";
//调用Javascript,无法弹出消息框,返回值只是几个无法正常显示的字符(我跟踪了内存位置,确实 ......
RT:
javascript 函数名相同,参数不同
但是调用时,其他方法都不用,只用最后一个方法。比如:
function atCalendarControl()
{
alter("atCalendarControl()");
atCalendarControl(0);
}
function atCalendarControl(iAn)
{
//.....
alter(&quo ......