Commit 9265d38c authored by mercury233's avatar mercury233 Committed by GitHub

fix

parent 12e806fe
...@@ -106,7 +106,7 @@ function login() { ...@@ -106,7 +106,7 @@ function login() {
port=$("#port").val(); port=$("#port").val();
password=$("#password").val(); password=$("#password").val();
username=$("#username").val(); username=$("#username").val();
var es = new EventSource("http://"+ip+":"+port+"/api/msg?username="+username+"password="+password); var es = new EventSource("http://"+ip+":"+port+"/api/msg?username="+username+"&password="+password);
es.onmessage = function(e) { es.onmessage = function(e) {
var data_li = $('<li>'+ e.data +'</li>'); var data_li = $('<li>'+ e.data +'</li>');
data_li.appendTo($("#output")); data_li.appendTo($("#output"));
...@@ -138,4 +138,4 @@ function openapi(api) { ...@@ -138,4 +138,4 @@ function openapi(api) {
<script src="http://s4.cnzz.com/z_stat.php?id=1255875151&web_id=1255875151"></script> <script src="http://s4.cnzz.com/z_stat.php?id=1255875151&web_id=1255875151"></script>
</body> </body>
</html> </html>
\ No newline at end of file
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