前端經常使用小知識點總結

1、文字輸入回車轉換爲--<br /> var text = $('.wra').html(); text=text.replace(/[\n\r]/g,'<br>') $('.wra').html(text); 2、手機端跳轉 onclick="location.href ='/html/html.html?doctor=' + doctorId" 3、移除點擊事件 $(".apply")
相關文章
相關標籤/搜索