<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""">
<htmlxmlns="">
<head>
<basehref="${basePath}"/>
<scripttype='text/javascript'src='${basePath}dwr/engine.js'></script>
<scripttype='text/javascript'src='${basePath}dwr/util.js'></script>
<scripttype='text/javascript'src='${basePath}dwr/intece/SendPushService.js'></script>
<scripttype="text/javascript">
functionhello(){
SendPushService.send("第一个dwr推程序");
}
/**由dwr在后台调用这个方法**/
functiondwrtest(data){
alert(data);
}
</script>
<title>第一个dwr推程序</title>
</head>
<bodyonload="dwr.engine.setActiveReverseAjax(true);">
<inputtype="button"value="点击我"onclick="hello();"/>
</body>
</html>
DWR聊天例子(源码)
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/tongxinshuyu/article-38623-4.html
分分钟搞垮那什么
十年96到06年