<script>
var _html = $("a[title=‘入园时间:2017-02-10‘]").html();
var _index = $("a[title=‘入园时间:2017-02-10‘]").html().replace("","").indexOf("年");
var _result = $("a[title=‘入园时间:2017-02-10‘]").html().replace("","").substring(_index);
var myDate = new Date();
var year=myDate.getFullYear(); //获取当前年var _end_result = (year-2015)+_result;
//$("a[title=‘入园时间:2017-02-10‘]").html(_end_result);
//$("a[title=‘入园时间:2017-02-10‘]").attr(‘title‘,‘入园时间:2015-02-10‘);
</script>