为3个注册表位置增加价值

我试图将值添加到注册表中的3个位置:

Square.area()

这是我需要添加到每个注册表路径的字符串:

computed: { formErrors: function() { return this.$validator.errors; }

由于某种原因,我无法测试此代码,只是看它是否增加了值:

watch:{
      formErrors : {
          handler:function(value){
              var formName = this.paymentMode;
              if(value.items.length > 0){
                  value.items.forEach(function(val){
                     console.log(val.msg);
                  });
              }
          },deep:true
      }
    }
mingdaoke 回答:为3个注册表位置增加价值

您可以将这两个功能添加到项目中,以使用注册表中的值:

' Write Reg:
'       Write to the Windows Registry
'       RegType should be 'REG_SZ' for string,'REG_DWORD' for an integer,'       'REG_BINARY' for a binary or boolean,and 'REG_EXPAND_SZ' for an expandable string
Function WriteReg(RegPath,Value,RegType)
    Dim Key
    Dim objRegistry
    Set objRegistry = CreateObject("Wscript.shell")
    Key = objRegistry.RegWrite(RegPath,RegType)
    WriteReg = Key
End Function

' Read Reg:
'       Read from the Windows Registry
Function ReadReg(RegPath)
    Dim Key
    Dim objRegistry
    Set objRegistry = CreateObject("Wscript.shell")
    Key = objRegistry.RegRead(RegPath)
    ReadReg = Key
End Function
本文链接:https://www.f2er.com/3123959.html

大家都在问