JinYazhou +

asp.net core select标签设置默认值问题

被asp.net core下的select标签设置默认值(中文及中文符号)问题困扰了两天。asp.net core的select不支持<option value="@product.Id" @(Model.productId==product.Id ? "selected" : "")>@product.ProductName</option>这种写法,会提示“缺少特性名称”。如果用非中文,可以用

微信支付关于XML解析存在的安全问题指引

微信支付商户,最近暴露的XML外部实体注入漏洞(XML External Entity Injection,简称 XXE),该安全问题是由XML组件默认没有禁用外部实体引用导致,非微信支付系统存在漏洞。

获取及反编译微信小程序wxapkg

准备工作 1、一部已经root的手机; 2、在此手机下载并安装微信6.6.1版本; 3、安装root explorer; 4、运行小程序,并进入/data/data/com.tencent.mm/MicroMsg/xxx/appbrand/pkg/xx.wxapkg,拿不准可以用root explorer全部打包,打包后移动到手机内存卡可以读取的路径,或者用手机管理软件保存到电脑。

Raw SQL Query without DbSet - .net core

With Entity Framework Core removing dbData.Database.SqlQuery<SomeModel> I can not find a solution to build a raw SQL Query for my full-text search query that will return the tables data and also the rank.

How to close Quote using WebApi

Before: "{\"errcode\":40029,\"errmsg\":\"invalid code, hints: [ req_id: 1AMtoA0486th36 ]\"}" After: {"errcode":40029,"errmsg":"invalid code, hints: [ req_id: 5g8ILa0612th24 ]"}

【转载】geohash查找附近的人

查找附近的人是移动开发非常流行的功能,不但可以用于普通应用开发,也可以用于游戏开发。本人主要简单运用流行的geohash算法来简单实现查找附近的人功能,并制作一个模拟环境,使用Unity和原生安卓来实现;

adb devices offline 解决方法

adb devices命令,USB调试一直开着,驱动也正常安装,设备可以被发现,但一直是offline。 网上的方法: adb kill-server adb start-server

Dude, Where's My DLL Config?

I write a lot of reusable components. Most recently, I created an assembly to handle notifications in various projects. For this assembly, I needed various configuration options, such as an SMTP server address. For configuration in .NET projects, we turn to App.config files, and in ASP.NET projects, we have the Web.config. In the case of a DLL however, it isn’t really advised to create/use an App.config file. On Stack Overflow, Chris Ammerman goes into great detail on the topic. But, hey, what if you want to use one anyway?

ionic常用命令

npm install -g cnpm --registry=https://registry.npm.taobao.org(npm镜像源指向淘宝) cnpm install -g cordova ionic(安装cordova ionic) cnpm update -g cordova ionic(更新cordova ionic) ionic -help(查看帮助)

ionic安卓打包失败

A problem occurred configuring project 'android'. > You have not accepted the license agreements of the following SDK components: [Android SDK Platform 25].

最新评论