首页 > 编程知识 正文

html引入vue开发,vue按需引入

时间:2023-05-05 20:58:50 阅读:168134 作者:81

1.index.js上写着命令

//获取焦点exportconstfocustest={ inserted : function (El ) { el.focus ) }2.当前页面需要根据需要引入和使用命令

import { focus test } from ' ./directives/index.js '//根据自己的要求写路径directives 3360 { focus test 3360 focus test }3. html

inputv-focus testv-model=' message ' placeholder=' test '4.完成

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。