问题描述
除了“PaymentID”需要添加另一个参数来退出变量“CurrUserID”的AJAX调用,参见下面的现有代码:
<script>
function cback_<%=objRS("PaymentID")%>(text)
document.getElementById('tr_<%=objRS("PaymentID")%>').innerHTML = text;
}
doAjax('/receipt_ajax.asp','PaymentID=<%=objRS("PaymentID")%>','cback_<%=objRS("PaymentID")%>','get','0')
</script>
需要语法方面的帮助,我尝试添加逗号加 Parmenter 并使用 & 或 + 进行连接
解决方法
URL 语法为 hello!\nhow are you?\n
,因此您的代码很可能需要
#!/sbin/openrc-run
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
name="service"
description=""
command="/path/to/dir/"
command_args="${service_args}"
#command_user="user:user"
depend() {
}
where 注入服务器端值以输出 objRS("CurrUserID") 的值。如果一切正确,页面代码将得到
page.asp?key1=val1&key2=val2