$(document).ready(function () {
$.ajax({
url: "{% url 'func' %}?x={{ x }}&y={{ y }}",
success: function (response) {
if (response.count >= 0) {
z = response.count;
alert(z) # 可以弹框
}
}
});
alert(z) # 没有反应