1.input不支持自动换行解决办法
input不支持换行;
textarea:支持换行;
设置提示文案的css 用::placeHolder
2.textarea禁止拖拽、去掉右下角三角(css下)
textarea{
resize:none;
}
3.用户对访问路径乱输入的处理
在路由管理器index.js里进行处理
之前的path写'*'号就行了,现在做了限制,得用正则 /:catchAll(.*),我这儿时回到首页,如果想跳转特有的404页面,只需要把redirect写成想跳转的路由就行了
4.div实现 a标签的跳转功能
<div class="repeat_top_content" @click="redirectToLink">
实现方法
function redirectToLink() {
// window.location.href = '/h5/help?index=0';//就在本页面跳转
window.open('/h5/help', '_blank');//打开一个新标签页
}