JavaScript类型转换的问题
<script type="text/javascript">
function a(count)
{
(count).toString();
alert(typeof(count));
this.location.href = "editServlet?count"=count;
this.forms[0].submit();
}
</script>
<!--页面-->
<td width="100" class="hh" align="center" height="22">
<input type="text" name="count" size="5" value="<%=item.getCount()%>" onblur="a(<%=item.getCount()%>)"/>
</td>
传递过来的count在java里是整形,alert(typeof(count))后,输出地是“number”类型,然后报错 : 不能给 '[string]' 赋值,也就是number转String没成功,请问应该怎么把整形给转成String呢?还是我别的地方写错了,大家帮我看看,谢谢了