当前位置:首页 > 开发 > 编程语言 > 编程 > 正文

dwr [referencec0-e4,referencec0-e5]

发表于: 2014-12-14   作者:阳光你好   来源:转载   浏览:
摘要: 前台传入的值的数据类型不对, 转换成字符串 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html>   <head>     <base href="<%=basePath%>
前台传入的值的数据类型不对, 转换成字符串


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">


  <script type='text/javascript' src='/DwrDemo/dwr/interface/Pusher.js'></script>
  <script type='text/javascript' src='/DwrDemo/dwr/engine.js'></script>
  <script type='text/javascript' src='/DwrDemo/dwr/util.js'></script>
  <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.8.0.min.js"></script>
  <script type="text/javascript">
  function send(){

  var _value = $("#to_id").val();
  var data={to_id: String(_value)};
  Pusher.send(data,function(count){

})
  }
  </script>
  </head>
 
  <body onload="dwr.engine.setActiveReverseAjax(true);">
  <form method="post"  action="">
<select name="to_id" id="to_id" multiple=”multiple” >
<option value=1 >张三</option>
        <option value=2 >李四</option>
      <option value=3 >王五</option>
  </select>
          <input type="button" onclick="send();" value="发送">

  </form>
  </body>
</html>

dwr [referencec0-e4,referencec0-e5]

  • 0

    开心

    开心

  • 0

    板砖

    板砖

  • 0

    感动

    感动

  • 0

    有用

    有用

  • 0

    疑问

    疑问

  • 0

    难过

    难过

  • 0

    无聊

    无聊

  • 0

    震惊

    震惊

版权所有 IT知识库 CopyRight © 2009-2015 IT知识库 IT610.com , All Rights Reserved. 京ICP备09083238号