• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






道强开

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2024年1月5日

jq sort
摘要: <!DOCTYPE html><html><body> <h1>JavaScript 数组</h1> <p>sort() 方法对数组的项目进行排序。</p> <p id="demo"></p> <script>const points = [ { "userId": 100, "userName": 阅读全文
posted @ 2024-01-05 17:05 道强开 阅读(29) 评论(0) 推荐(0)
 

2024年1月4日

jq验证
摘要: //身份证验证function isIdCardNo(num) { num = num.toUpperCase(); //身份证号码为15位或者18位,15位时全为数字,18位前17位为数字,最后一位是校验位,可能为数字或字符X。 if (!(/(^\d{15}$)|(^\d{17}([0-9]|X 阅读全文
posted @ 2024-01-04 16:50 道强开 阅读(107) 评论(0) 推荐(0)
 
jquery模板绑定list数据
摘要: https://aui.github.io/art-template/zh-cn/docs/ /*! art-template@4.12.2 for browser | https://github.com/aui/art-template */!function (e, t) { "object" 阅读全文
posted @ 2024-01-04 16:40 道强开 阅读(50) 评论(0) 推荐(0)
 

2019年7月25日

DataTable 转List
摘要: 忘了出处 ,这个是转别人的 public class DataToList<T> where T : new() { /// <summary> /// 利用反射和泛型 /// </summary> /// <param name="dt"></param> /// <returns></retur 阅读全文
posted @ 2019-07-25 13:48 道强开 阅读(754) 评论(0) 推荐(0)
 
C# 随笔写txt
摘要: public static void WriterFile(string file) { string path = AppDomain.CurrentDomain.BaseDirectory; //如果不存在,则创建目录 if (!Directory.Exists(path + "Log/")) 阅读全文
posted @ 2019-07-25 13:43 道强开 阅读(278) 评论(0) 推荐(0)
 
ionic4 页面跳转传值和新页面取值
摘要: 页面跳转 : <ion-row *ngFor="let item of aboutData.stockData" [routerLink]="[ '/stock-details']" /* 跳转页面*/ [queryParams]="item" /* 传的参数*/> 新页面取值: import { 阅读全文
posted @ 2019-07-25 13:38 道强开 阅读(1537) 评论(0) 推荐(0)
 
ionic 股票列表 网络读取数据,实现下拉刷新,上拉加载
摘要: html: <ion-header> <ion-toolbar> <ion-title> 股票 </ion-title> </ion-toolbar> </ion-header> <ion-content> <ion-refresher slot="fixed" (ionRefresh)="doRe 阅读全文
posted @ 2019-07-25 13:29 道强开 阅读(313) 评论(0) 推荐(0)