我有一个函数,我想在最后一行完成后再次调用。
如果我展示代码可能更容易理解。
function updateQuantity(){
// further code where I change same data
// and now I want to start function again but with remembering the input element that called it previously
updateQuantity(this); // I tried it this way but it doesn't work
}
有什么想法吗?
updateQuantity
时设置的变量? - Andreas Louv