- 博客(12)
- 资源 (21)
- 收藏
- 关注
原创 beego curd
首先建立模型package modelsimport "time"type Friendlink struct { Id int64 Name string `description:"网站名称"` Logo string `orm:"null" description:"网站logo"` Url string `description:"网站链接"` Sort int `...
2019-05-27 17:27:12 307
原创 beego 验证
使用structtype FriendlinkForm struct { Id int64 `form:"-"` Name string `form:"name"` Logo string `form:"logo"` Url string `form:"url"` Sort int `form:"sort"` // Url string `form:"url" valid:"Re...
2019-05-27 17:21:54 774
原创 beego 路由处理
func RestRoute(path string, action beego.ControllerInterface) { beego.Router(path, action,"get:Index") beego.Router(path + "/add", action,"get:Add") beego.Router(path + "/create", action,"post:Cre...
2019-05-27 17:17:26 325
原创 ubuntu 安装rails报错cannot find -lgmp
/usr/bin/ld: cannot find -lgmpsudo apt-get install libgmp3-dev
2019-05-20 16:50:55 516
原创 rvm 报错
There has been an error while updating your system using `apt-get`.It seems that there are some 404 Not Found errors for repositories listed in: /etc/apt/sources.list /etc/apt/sources.list.d...
2019-05-20 15:40:32 379
原创 laravel 多语言切换
laravel 有本地化功能,setLocale,但不是持久化的,需要借助session采用策略,域名加语言后缀,laravel是可以使用路由后缀的,如www.exame.com/en所以先配置路由,很简单,只需要在现有路由的基础上加一个前缀就可以了Route::prefix('en')要实时识别路由前缀并获取到当前语言,我借助了中间件middleware,新建中间件,如Lang...
2019-05-17 10:44:13 5105 1
原创 wpf在cs文件中使用StaticResource
deviceStatus.Style = FindResource("FontAwesome") as Style;deviceStatus.Text = FindResource("fa-lightbulb-o").ToString();
2019-05-07 17:01:57 2052 1
原创 wpf DataGrid 分页
1.新建用户控件如:Paginationxmal:<StackPanel Name="paginationPanel" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,20,20,0" Height="40" Visibility="Hidden"> <TextBlock St...
2019-05-07 11:31:22 1719
原创 WPF简单日志记录
class PLogs { /// <summary> /// 普通日志 /// </summary> /// <param name="className">类名</param> /// <param name="info">日志记录</pa...
2019-05-07 11:22:00 2095 1
原创 wpf DataGrid中的RadioButton
有一个需求,我们有很多条目,需要选择一个条目作为当前条目,这就需要用到单选,就需要在DataGrid中使用RadioButton, 我的数据中有一个字段为is_current, 为bool值,在RadioButton中,有一个IsChecked绑定是否选择,所以可以直接绑定is_current<DataGridTemplateColumn> ...
2019-05-06 09:10:06 1779 1
原创 wpf 自定义控件UserControl之NumericUpDownControl
wpf没有NumericUpDown这个控件,只有自己写,或找别人写好的,作为初学者,肯定自己写了xmal页面,包括1个label, 2gebutton,1个textbox<Grid Margin="10"> <Grid.ColumnDefinitions> <ColumnDefinition /> ...
2019-05-04 09:43:15 1842
原创 wpf 上传图片
using System;using System.IO;namespace puruite.Helps{ class Upload { public static string UploadImage(string fileName, Stream fileData) { // 获取file后缀 ...
2019-05-04 09:35:46 398
hadoop with python
2018-07-20
微信第三方授权获取pre_auth_code
2016-04-23
ecshop+swfupload实现批量上传图片
2015-04-09
Yii快速入门教程
2014-09-20
JavaScript权威指南(第6版)(中文版)
2014-05-05
PHP技术内幕
2013-10-11
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人