1、jsp页面截取字符串
${fn:substring(appoi.hospitalizeTime,0,fn:indexOf(appoi.hospitalizeTime,' '))}
2、js截取字符串
dataArr[i].hospitalizeTime.substr(0,11)
3、js判断
(dataArr[j].scientificResearch.length>10?(dataArr[j].scientificResearch.substr(0,9)+"..."):dataArr[j].scientificResearch)