一行代码笔记-1

1.efcore 指定实体某个属性不更新

_db.Entry(note).Property(n => n.CreatedTime).IsModified = false;

2.去除input元素选中时的黑框(edge浏览器)

input {outline:none;}

3.angularjs 非上下文中获取 $scope 对象

$("[ng-app=mainApp]").scope()

4.powershell 重启网卡代码

#$net_adapter_name 为网卡/适配器名称
Get-NetAdapter -Name $net_adapter_name | Restart-NetAdapter

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注