the form is submitted with the picture. Save the picture first. After saving the picture, save the path to the database to get the id, and then assign the id to the form object entity. if after the picture is saved, the sql of the saved form needs to ...
for (const i in this.keywords) { count += this.keywords[i].list.length; } The body of a for-in should be wrapped in an if statement to filter unwanted properties from the prototype guard-for-in how should this be modified? ...
function factorial1(n,total) { if (n === 1) { return total; } return factorial1(n - 1, n * total); } function factorial2(n) { if (n === 1) { return 1; } return n * factorial2(n - 1); } console.log(factori...
electron, under win7 system I use app.getPath ( pepperFlashSystemPlugin ) development environment to run flash, package to generate asar or flash load failure in production environment, what may be the problem? The second question is that I use relati...
Custom component life cycle res.height sometimes reports to null ready: function () { var that = this var query = wx.createSelectorQuery().in(this) query.select( .question ).boundingClientRect(function (res) { that.setData({ questionHeight: re...
problem description if you want to get a piece of data required by composition in the course field, the data returned after using find contains excess data, and the result is not ideal. In order to achieve this goal, how to write code, it seems that...