Judge - Related information

  • About the judgment of writing code

    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...

    Apr.01,2021
  • Native js encapsulated form submission verification method

    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...

    Aug.18,2021
  • Constructor appends a method in the specified object,

    a ={ x:function(){console.log(1)} } function B(){ this.y = function(){} } think var b = new B (); b = { x:..., y:.... } how to implement ...

    Mar.23,2021
  • The problem of wepy components getting global globalData objects

    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...

  • Invalid react-loadable

    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...

    Mar.16,2021
  • Flex layout

    <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 ...

    Feb.28,2021
Menu