再次帮助.. javascripting [英] help again.. javascripting

查看:75
本文介绍了再次帮助.. javascripting的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您能再帮我一次吗..如何在javascript中使用多个参数?

这部分我想添加另一个参数:
window.location.replace("/AcctConfirmation/Index?acctCode =" + acctCode)

我想要这样的东西:
window.location.replace("/AcctConfirmation/Index?acctCode =" + acctCode +?acctName =" custName)

希望你能理解我的意思.

Hi can you help me again.. how to have multiple parameter in javascript?

this part i want to add another parameter:
window.location.replace("/AcctConfirmation/Index?acctCode=" + acctCode )

i want something like this:
window.location.replace("/AcctConfirmation/Index?acctCode=" + acctCode + "?acctName=" custName)

hope you get my point.

<script type="text/javascript">
    $(document).ready(function () {
        $('#myDataTable tbody tr').dblclick(function () {

            var acctCode = $(this).find('td:eq(0)').html();

            window.location.replace("/AcctConfirmation/Index?acctCode=" + acctCode )


        }).hover(function () {
            $(this).css('background-color', '#ccc');
        }, function () {
            $(this).css('background-color', '#fff');
        });
    });
</script>

推荐答案

(document).ready(function(){
(document).ready(function () {


('#myDataTable tbody tr').dblclick (功能 () { var acctCode =
('#myDataTable tbody tr').dblclick(function () { var acctCode =


(this).find('td:eq(0)').html(); window.location.replace("/AcctConfirmation/Index?acctCode =" + acctCode) }).hover(function(){
(this).find('td:eq(0)').html(); window.location.replace("/AcctConfirmation/Index?acctCode=" + acctCode ) }).hover(function () {


这篇关于再次帮助.. javascripting的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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