function Demo(name) { this.name = name; } var getSingle = function(fn) { var result; return function() { console.log(arguments.length); return result || (result = fn.apply(this, arguments)); } }; const aa = new getSingle(D...
went to the interview last week, handwritten singleton class then I handwritten a more commonly used global setting class: import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; public class Setting { private ...
I built two components in the conponent directory: a.vue b.vue a.vue: < template > < div class= "a " > {{ msg }} <a href=" b">b.vue< a> < div > < template > export default { name: asides, data () { return { msg: ...
Xiaobai has a question, that is, I made a simple form, entered the user name and password, logged in, and the browser prompted whether to save the password. so can the browser achieve this effect, do you still need cookie to record the user name? What...
var data = [{ id:1 } ,{ id:2 } ,{ id:3 }] is similar to this structure. An element object in data corresponds to a record in a database table. then Sequelize how to do it all at once? ...
vue export const ADD_CART = ADD_CART Why uppercase ...
I unzipped the current nodejs to opt app node-v8.11.4-linux-x64 -sharp ln -s opt app node-v8.11.4-linux-x64 bin node usr local bin has no effect on executing node-v, (not even using ln-s opt app node-v8.11.4-linux-x64 bin node usr local bi...