js的String型自动转换成了int的问题

2025-02-24 01:08:01
推荐回答(2个)
回答1:

你都知道是 string,那为什么不加上引号:
onclick="operation('服务', '')"

回答2:

onclick=operation(“服务”,“”)