随笔 - 25  文章 - 0 评论 - 0 阅读 - 38531
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

08 2017 档案
c# 身份证地区码返回地区名 [对照表]
摘要://使用示例 : new Models.AreaCode().Contrast[22] + "-" + new Models.AreaCode().ContrastTable(220183) //县及县以上行政区划代码 (GB/T 2260) (截止 2006 年 12 月 31 日) //Clas 阅读全文
posted @ 2017-08-29 09:35 徐海峰 阅读(2401) 评论(0) 推荐(0) 编辑
HTML绘制中国国旗
摘要:<li class="uk-hidden"> <a href="http://www.poolball.top" class="uk-margin-small-top" target="blank"><svg version="1.1" id="Ebene_1" xmlns="http://www. 阅读全文
posted @ 2017-08-11 09:53 徐海峰 阅读(431) 评论(0) 推荐(0) 编辑
简单实现图片上传预览
摘要:/* Title */ <script type="text/javascript" src="Script/jquery-1.4.1.min.js"></script> /* JQuery */ <script type="text/javascript"> $(function () { $(' 阅读全文
posted @ 2017-08-11 09:50 徐海峰 阅读(165) 评论(0) 推荐(0) 编辑
Java 通用正则表达式
摘要:一个通用且常用的Java正则匹配工具,用以检查邮箱名、电话号码、用户密码、邮政编码等合法性。 import java.util.regex.Matcher; import java.util.regex.Pattern; public class RegexUtils { /** * 验证Email 阅读全文
posted @ 2017-08-11 09:48 徐海峰 阅读(202) 评论(0) 推荐(0) 编辑
C#+Mysql 图片数据存储
摘要://把文件转成二进制流出入数据库private void button2_Click(object sender, EventArgs e){ FileStream fs = new FileStream(textBox1.Text, FileMode.Open); BinaryReader br 阅读全文
posted @ 2017-08-11 09:46 徐海峰 阅读(1186) 评论(0) 推荐(0) 编辑
FileUpload转换为字节
摘要://FileStream _fs = new FileStream(this.FileUpload1.FileName, FileMode.Open); byte[] iBytes = new byte[this.FileUpload1.FileContent.Length]; BinaryRead 阅读全文
posted @ 2017-08-11 09:46 徐海峰 阅读(211) 评论(0) 推荐(0) 编辑
图片转换为缩略图(Byte->Byte)
摘要:float _thumbnail_X = 0;float _thumbnail_Y = 0;int _thumbnail_Width = 480;int _thumbnail_Height = 480;//新建内存变量存储原图数据MemoryStream _sourceImage_MemoryStr 阅读全文
posted @ 2017-08-11 09:44 徐海峰 阅读(367) 评论(0) 推荐(0) 编辑
Android申请权限
摘要:int checkCallPhonePermission = ContextCompat.checkSelfPermission(mContext,Manifest.permission.CALL_PHONE); if(checkCallPhonePermission != PackageManag 阅读全文
posted @ 2017-08-11 09:41 徐海峰 阅读(95) 评论(0) 推荐(0) 编辑
Android线程
摘要:TextView textView1; int iCont=0; private Thread mThread; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceSt 阅读全文
posted @ 2017-08-11 09:41 徐海峰 阅读(76) 评论(0) 推荐(0) 编辑
android 农历
摘要:package com.example.xuhaifeng.everygo; import java.text.ParseException;import java.text.SimpleDateFormat;import java.util.Calendar;import java.util.Da 阅读全文
posted @ 2017-08-11 09:39 徐海峰 阅读(339) 评论(0) 推荐(0) 编辑
android 隐藏系统Bar
摘要:getSupportActionBar().hide(); 阅读全文
posted @ 2017-08-11 09:39 徐海峰 阅读(139) 评论(0) 推荐(0) 编辑
android ViewPager基本功能
摘要:// viewpager_view_01.xml // viewpager_view_02.xml // activity.main.xml <android.support.v4.view.ViewPager android:id="@+id/main_viewPager" android:lay 阅读全文
posted @ 2017-08-11 09:38 徐海峰 阅读(102) 评论(0) 推荐(0) 编辑
andoid 监听返回键退出
摘要://监听返回键 public void onBackPressed(){ confirmExit(); } //确认退出程序对话 private void confirmExit() { //确认退出程序 new AlertDialog.Builder(this).setTitle(R.string 阅读全文
posted @ 2017-08-11 09:36 徐海峰 阅读(162) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示