C#读取或设置ScrollLock
C#读取或者设置ScrollLock状态,允许滚动状态读取或者设置 using System; using System.Runtime.InteropServices; using System.Windows.Forms; namespace RobvanderWoude { public class ScrollLock { [DllImport( "user32.dll" )] static extern void keybd_event(byte bVk, byte bScan,...
Laravel 5框架表单验证
在命令行下运行 php artisan 可以看到一个选项 make:request,新建一个form request类。在命令行执行php artisan make:request CreateArticleRequest生成的文件在 app/http/requests 目录下。在文件中我们可以看到两个方法:public function authorize() { return false; } public function rules() { return [ &...