Commit 9c0989255c6389354e7a734b3501dca7073196be

Authored by ykxie
1 parent 6fb5eabb

add host live-api

src/live/js/student.js
1 1 $(function() {
2 2 var teacherId = document.getElementById('teacher');
3 3 var studentId = document.getElementById('student');
4   - var socket = io('http://127.0.0.1:3306');
  4 + var socket = io('http://live-api.com:3306');
5 5  
6 6 var teacher = CodeMirror.fromTextArea(teacherId, {
7 7 value: '输入HTML代码',
... ...
src/live/js/teacher.js
1 1 $(function(){
2 2 var teacherId = document.getElementById('teacher');
3   - var socket = io('http://127.0.0.1:3306');
  3 + var socket = io('http://live-api.com:3306');
4 4  
5 5 // 初始化codemirror页面
6 6 var teacher = CodeMirror.fromTextArea(teacherId, {
... ...