首页 > 代码库 > js中onclick中文参数传输方式

js中onclick中文参数传输方式

添加单引号或双引号即可,例:

                        var type = "‘"+n.bankCard.type+"‘";
                        var number = "‘"+n.bankCard.number+"‘";
                        var moneyChange = "‘"+n.moneyChange+"‘";
                        var userName = "‘"+n.bankCard.userName+"‘";
                        var adress = "‘"+n.bankCard.adress+"‘";
                        var phone = "‘"+n.bankCard.phone+"‘";
                        var remark = "‘"+n.remark+"‘";

 

js中onclick中文参数传输方式