请问可以往javascript函数中传两个变量吗
第一次传了一个变量,运行没问题,page是需要输入的页面数
<script type='text/javascript'> function jumpPage(page) { var URL = '<c:url value="operNewsMessage.do"/>'; if (page != null && page != '') window.location.href = URL + "?method=show&jumpPage=" + page; }</script>
<script type='text/javascript'> function jumpPage(page,newsid) { var URL = '<c:url value="operNewsMessage.do"/>'; if (page != null && page != '') window.location.href = URL + "?method=show&jumpPage=" + page + "&newsid=" + newsid; }</script>
行:219字符:29错误:缺少')'代码:0URL:http://localhost:8080/project/newsAction.do?method=show&newsid=news.1000000312