'teacher.html'

pull/14/merge
jackfrued 2018-07-04 16:50:48 +08:00
parent 4a458a594e
commit 24422f4f18
1 changed files with 2 additions and 2 deletions

View File

@ -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);