I feel less and less able to write code. At present, there is a problem, that is, when does need to be judged, and when is the judgment redundant and unnecessary? for example, 1, do you judge the addition, deletion, modification and query of the dat...
the native checkValidity () method returns a Boolean value. True indicates that the check is passed, and false indicates that the check is not passed. Therefore, the submit form can be encapsulated as the following function. function submitForm (actio...
a ={ x:function(){console.log(1)} } function B(){ this.y = function(){} } think var b = new B (); b = { x:..., y:.... } how to implement ...
at present, when Mini Program s wepy framework component acquires a global globaldata object, it needs this.$parent.$parent; . Is there any way to do function processing in a file, and which gloabaldata object can you directly go to when this function i...
Environment: webpack4 react and others are the latest dependencies! import React from react ; import { BrowserRouter, Route, Link, Switch, HashRouter } from react-router-dom import Loadable from react-loadable ; import Loading from...
<view style= display:flex > <view style= display:flex;flex:1;flex-direction:column;align-items:stretch; > <view class= >:<text style= color:-sharpff0000 >{{ sum - promTotal }}< text>< view> <view ...