Commit 2e94c5b2 by 冷斌

update

parent 0b1c0a76
......@@ -34,13 +34,13 @@
</div>
<script type="text/javascript">
var socket = new io("{$config['chatserver']}");
$(".js-ajax-submit").on("click",function(){
var content=$.trim( $("#content").val() );
if(!content){
alert("内容不能为空");
return !1;
}
var socket = new io("{$config['chatserver']}");
var data2 = {"token":"1234567","content":content};
socket.emit("systemadmin",data2);
$.ajax({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment