Commit 24422f4f authored by jackfrued's avatar jackfrued

'teacher.html'

parent 4a458a59
...@@ -58,8 +58,8 @@ ...@@ -58,8 +58,8 @@
$(function() { $(function() {
$('.basic .button').on('click', function(evt) { $('.basic .button').on('click', function(evt) {
evt.preventDefault(); evt.preventDefault();
var a = $(evt.target) var a = $(evt.target);
var url = a.attr('href') var url = a.attr('href');
$.getJSON(url, function(json) { $.getJSON(url, function(json) {
if (json.code == 200) { if (json.code == 200) {
a.text(json.result); a.text(json.result);
......
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