前端使用技巧整理

前言:

整理一些平時使用的比較好的前端小技巧,想起來的都會加進來的

MD5加密用法:

       

  $.trim($("#loginPassword").val($.md5(loginPassword)))
日期格式設置
<span class="invest-time"><fmt:formatDate value="${bidInfoList.bidTime}" pattern="yyyy-MM-dd HH-mm-ss"/></span>
<base>標籤
<base href="${pageContext.request.scheme }://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}/" />
字符串截取

<spanclass="invest-user">${fn:substring(bidInfoList.user.phone,0,3)}******${fn:substring(bidInfoList.user.phone,9,11)}</span> 



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章