我需要验证与元素本身的值相关的列表元素。
是否有可能或者我应该为每个产品创建一个验证?
new Vue({
el: "#app",
data: {
text: '',
sons: [
{amount: 20, pending: 50},
{amount: 30, pending: 150}
]
},
validations: {
text: {
required,
minLength: minLength(5)
},
sons: {
minLength: 3,
$each: {
amount: {
maxValue: maxValue(this.sons[x].pending) // how to set x?
}
}
}
}
})
Run Code Online (Sandbox Code Playgroud)
我需要做一个过滤器,使用列表中包含的参数来请求数据.
if (filter.Sc.Count > 0)
socios.Where(s => filter.Sc.Contains(s.ScID));
Run Code Online (Sandbox Code Playgroud)
我尝试这种方式,但这不起作用,我也试过......
socios.Where( s => filter.Sc.All(f => f == s.ScID));
Run Code Online (Sandbox Code Playgroud)
我怎么能这样做过滤器?
我必须使用存储在安全令牌中的证书。我可以从 Windows 证书存储中访问它,但设备有密码,因此会显示一个带有输入字段的弹出窗口。
这是我用于加载证书的代码:
static X509Certificate2 BuscarCertificado
(StoreLocation location, StoreName name,
X509FindType findType, string findValue)
{
X509Store store = new X509Store(name, location);
try{
store.Open(OpenFlags.ReadOnly);
X509Certificate2Collection col = store.Certificates.Find
(findType, findValue, true);
return col[0];
}
finally { store.Close(); }
}
Run Code Online (Sandbox Code Playgroud)
该设备是 ACS CryptoMate64 0。
是否可以在代码中发送密码以不显示此消息?
谢谢你的帮助