202009-29 django admin 根据choice字段选择的不同来显示不同的页面方式 我就废话不多说了,大家还是直接看代码吧!一、举例tip/tip.jsvarreact=function(){if(django.jQuery('#id_tiptype').val()=='content'){django.jQuery('#id_content').parent().parent().show(500);django.jQuery('#id_image').parent().parent().hide(500);django.jQuery('#id_cropping').parent().parent().hide(500);}else{django.jQuery('#id_content').parent().parent()... 继续阅读 >