随笔记录

下载:window.open(url, '_blank')

打开新标签页:
window.open('url?参数名=' + encodeURIComponent(参数), 'index')
 
换行显示:
js : meetingModel.requirement = '1.我不知道。\n2.我不知道。\n3我不知道。\n1.我不知道。\n2.我不知道。\n3我不知道。'
html:对要实现换行的标签添加样式(white-space: pre-line
   <div>{{requirement}}</div>

 
posted @ 2019-01-02 16:35  萌髦  阅读(68)  评论(0编辑  收藏  举报