标签:var style == events color sub title .text div
var text = $(this).find("a").text(); console.log(text); var newText=text.substr(0, text.length - 1) if(text==‘Events‘){ $(".m_title").text(‘an ‘+newText); }else{ $(".m_title").text(‘a ‘+newText); }
标签:var style == events color sub title .text div
原文地址:http://www.cnblogs.com/Julia-Yuan/p/6901551.html