how can gulp tell that a folder in dist is empty when it is compiled and packaged with watch, which means that all the files in this folder have been deleted, but I can t tell that the folder in dist is empty, so I can t delete the empty folder ...
problem description the first thing to avoid in vue is eventBus, although it is convenient, but its consequences are more serious and may lead to a lot of hard-to-find bug. the second one is watch. When there is more than one watch in a component, it...
pageData is an object, passed from my parents, and I received pageData, through props in the child component. I want to use watch to listen for changes in the properties in the pageData object, and then assign a value to newpageData. but normal snoopi...
what happened when I first used the nodejs API,watch method to call back twice? the test.js code is as follows: const fs = require( fs ); fs.watch( . a.txt , function(eventType,filename){ console.log(eventType,filename); }); A few simple lin...
1.data defines the array gametasks, 2.wacth. Console can see that the data has indeed changed. 3. Rendering is not successful in dom ...