Which is more efficient to use the blending method or the pull-out method in vue and why?

which is more efficient to use the blending method or the pull-out method in vue, and why?

for example: in multiple components of the vue project, you want to use a method to manipulate dom (click input to get the width and height of the input)

    
    
    
    A .   
    
    B .   js class class
    
    ==============
    A   B       
Nov.19,2021

if the concept of B-detachment can be realized, it must be highly maintainable and the speed is basically the same


thanks for inviting
to take a specific look at the scene. The mixins tool method in Vue is not involved if only the tool method is placed in methods , and does not involve data .
the JS file that is recommended to be extracted. The efficiency is basically the same, and it's all js code. When
mixins is mixed, do not notice that the methods in the vue single file are easy to overwrite.
separate js files are less likely to be overwritten. You can also add a layer, such as utils.init () .

if it contains data , computed , etc., it is recommended to use mixins .

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea051f-47881.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea051f-47881.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?