2023年5月15日
摘要: 又到了一年一度的授权接口修改时间 ps.去年10月,希望今年能消停点。 话不多说上代码。 setName文件: <button class="avatar-wrapper" open-type="chooseAvatar" bind:chooseavatar="onChooseAvatar"> <i 阅读全文
posted @ 2023-05-15 09:54 树笙乐 阅读(347) 评论(0) 推荐(0) 编辑
  2020年5月25日
摘要: <view class='category'> <swiper current='{{currentTab}}' style='height:100%;' vertical="{{true}}"> <swiper-item> 111 </swiper-item> </swiper> </view> 阅读全文
posted @ 2020-05-25 22:18 树笙乐 阅读(527) 评论(0) 推荐(0) 编辑
  2020年3月25日
摘要: 好久没发博客了,发一条给2020打个卡 新手入坑小程序,网上没找到类似的示例,自己整了一个。多功能滑动展示 <!--pages/scrollMenu/scrollMenu.wxml--> <swiper class="navban" interval="{{interval}}" duration= 阅读全文
posted @ 2020-03-25 18:30 树笙乐 阅读(1174) 评论(0) 推荐(0) 编辑
  2018年8月11日
摘要: 一.TreeView SelectedNode 选中的节点 Level 节点的深度(从0开始) AfterSelect 节点选中后发生 1.获取节点深度 this.tvlist.SelectNode.Level 2.获取节点名称 this.tvlist.SelectNode.Text 二.使用Dat 阅读全文
posted @ 2018-08-11 14:10 树笙乐 阅读(513) 评论(0) 推荐(0) 编辑
  2018年8月9日
摘要: 一.绑定下拉框数据 string sql = "select * from Grade"; SqlDataAdapter sda = new SqlDataAdapter(sql,helper.Con); sda.Fill(ds,"Grade"); //新建一个下拉框选项 DataRow row = 阅读全文
posted @ 2018-08-09 15:55 树笙乐 阅读(117) 评论(0) 推荐(0) 编辑
  2018年8月7日
摘要: 一.枚举 枚举是一组描述性的名称 定义一组有限的值,不能包含方法 对可能的值进行约束 1.定义枚举类 public enum Gender { Male,Female } 2.使用枚举表示整数值 public enum Gender { Male=1, Female=0 } Console.Writ 阅读全文
posted @ 2018-08-07 13:39 树笙乐 阅读(156) 评论(0) 推荐(0) 编辑
  2018年8月6日
摘要: 一.ImageList:存储图像集合 Images 存储的所有图像 ImageSize 图像的大小 ColorDepth 颜色数 TransparentColor 被视为透明的颜色 先设置ColorDepth、ImageSize属性值再添加图片,反之不能更改这两个属性值 二.ListView:存储项 阅读全文
posted @ 2018-08-06 13:38 树笙乐 阅读(309) 评论(0) 推荐(0) 编辑
  2018年8月4日
摘要: 一.Application.Exit()和this.Close()的区别 Application.Exit() 1.应用程序类Application的静态方法,用于退出当前应用程序 2.如果当前应用程序打开了多个窗体,则关闭所有窗体 3.当关闭窗体时,不会触发窗体的FromClising和FormC 阅读全文
posted @ 2018-08-04 12:13 树笙乐 阅读(103) 评论(0) 推荐(0) 编辑
  2018年8月2日
摘要: 一.窗体的属性 1.背景颜色:BackColor 2.背景图片:BackGroundImage 3.设置窗体标题:Text 4.窗体图标:icon 5.设置窗体更改大小:Formboderstyle 6.设置窗体显示位置:StartPosition 7.设置背景图像平铺方式:BackGroundIm 阅读全文
posted @ 2018-08-02 15:25 树笙乐 阅读(141) 评论(0) 推荐(0) 编辑
  2018年7月30日
摘要: 一.使用StringBuilder类追加和删除字符串 1.创建StringBuilder类的对象 StringBuilder sb=new StringBuilder("初始字符串值"); 2.Append()方法拼接字符串 sb.Append("呵呵"); 结果为:初始字符串值呵呵 3.使用Ins 阅读全文
posted @ 2018-07-30 11:50 树笙乐 阅读(212) 评论(0) 推荐(0) 编辑