摘要:
public partial class Form1 : Form { public Form1() { InitializeComponent(); // 绑定事件 this.dataGridView1.CellPainting += DataGridView1_CellPainting; thi
阅读全文
posted @ 2025-11-24 20:54
魔法乐
阅读(0)
推荐(0)
摘要:
public partial class Form1 : Form { private const int MapWidth = 25; private const int MapHeight = 20; private const int CellSize = 50; private List<O
阅读全文
posted @ 2025-11-06 00:57
魔法乐
阅读(9)
推荐(0)
摘要:
cs代码 public partial class Form1 : Form { private List<ComboBoxItem> sexItems = new List<ComboBoxItem> { new ComboBoxItem { Text = "男", Value = 0 }, ne
阅读全文
posted @ 2025-10-21 21:21
魔法乐
阅读(4)
推荐(0)
摘要:
代码如下: using DevExpress.XtraEditors.Repository; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using S
阅读全文
posted @ 2025-09-22 20:33
魔法乐
阅读(10)
推荐(0)
摘要:
<script> function nowtime() { var date =new Date(); //当前年份 var year=date.getFullYear(); //当前月份 var month=date.getMonth()+1; //当前天数 var day=date.getDat
阅读全文
posted @ 2021-09-28 22:50
魔法乐
阅读(190)
推荐(0)
摘要:
下拉列表填充元素 <script> //本页面跳转 window.location.href location.href //上一级页面跳转 parent.location.href //最外层页面跳转 top.location.href //开发中遇到一个问题,当登录状态过期的时候,登录页面会嵌套
阅读全文
posted @ 2021-09-28 22:17
魔法乐
阅读(279)
推荐(0)
摘要:
<script> //javascript解析json格式的数据 //json字符串转Json var json = '{"key":"value","jian":"zhi"}'; //eval方法 var evalObj= eval("(" + json + ")");//eval会执行json中
阅读全文
posted @ 2021-09-27 23:43
魔法乐
阅读(138)
推荐(0)
摘要:
<script> //必须等页面内包括图片的所有元素加载完成后才能执行,不能同时编写多个,只执行一个。 window.onload =function(){};//等同$(window).load() //是DOM结构绘制完毕后就可以执行 $(document).ready(function(){}
阅读全文
posted @ 2021-09-27 23:25
魔法乐
阅读(70)
推荐(0)
摘要:
<script> function setCheck() { document.getElementById("radioId").checked = true; } </script>
阅读全文
posted @ 2021-09-27 23:17
魔法乐
阅读(1599)
推荐(0)
摘要:
<script> //改变图片src function changerCode() { document.getElementById("code").src=""+"?time"+Date.now();; } </script>
阅读全文
posted @ 2021-09-27 23:09
魔法乐
阅读(154)
推荐(0)