初学jQuery,高手请指教
------解决方案-------------------- var tee = $("#tee").html(); var te = tee.substr(0,7); var ayy = te.split("-"); var now = new Date(); var month = now.getMonth()+1; if (month- parseInt(ayy[1]) > 1){ $("#tee").attr("style","color:red"); } 这是js