diff --git a/Day41-55/code/hellodjango/templates/demo/teacher.html b/Day41-55/code/hellodjango/templates/demo/teacher.html index 7374ba9..ed63262 100644 --- a/Day41-55/code/hellodjango/templates/demo/teacher.html +++ b/Day41-55/code/hellodjango/templates/demo/teacher.html @@ -58,8 +58,8 @@ $(function() { $('.basic .button').on('click', function(evt) { evt.preventDefault(); - var a = $(evt.target) - var url = a.attr('href') + var a = $(evt.target); + var url = a.attr('href'); $.getJSON(url, function(json) { if (json.code == 200) { a.text(json.result);