I have this script:(我有这个脚本:)
<script>
$(document).ready(function () {
$("#changeResumeStatus").click(function () {
$.get("{% url 'main:changeResumeStatus' %}", function (data) {
if (data['message'] == 'hidden') {
$("#resumeStatus").text("скрыто");
} else {
$("#resumeStatus").text("опубликовано");
}
}, "json");
});
});
</script>
I receive the following error in my Google Chrome console:(我在Google Chrome控制台中收到以下错误:)
event.returnValue is deprecated.(event.returnValue已弃用。) Please use the standard event.preventDefault() instead.(请改用标准event.preventDefault()。)
I am using jQuery v1.10.2 and #changeResumeStatus
is a <span>
.(我正在使用jQuery #changeResumeStatus
和#changeResumeStatus
是<span>
。)
What's wrong with my script?(我的脚本怎么了?)
ask by Alex Parakhnevich translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…