vue过滤器和自定义指令的用法:

(一)过滤器的用法:

(二)自定义指令的用法:

下图示例是使用自定义指令实现拖拽:

 

posted @ 2017-09-12 17:26  小小夏123  Views(350)  Comments(0Edit  收藏  举报