基于C#实现鼠标设置功能

目录
  • 实践过程
    • 效果
    • 代码

实践过程

效果

代码

public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();
    }

    [System.Runtime.InteropServices.DllImport("user32.dll", EntryPoint = "SwapMouseButton")]
    public extern static int SwapMouseButton(int bSwap);
    [System.Runtime.InteropServices.DllImport("user32.dll", EntryPoint = "SystemParametersInfo")]
    public static extern bool SystemParametersInfo(uint uiAction, uint uiParam, ref int pvParam, uint fWinIni);
    [System.Runtime.InteropServices.DllImport("user32.dll")]
    public extern static int GetSystemMetrics(int nIndes);
    [System.Runtime.InteropServices.DllImport("user32.dll", EntryPoint = "SetDoubleClickTime")]
    public extern static int SetDoubleClickTime(int wCount);
    [System.Runtime.InteropServices.DllImport("user32.dll", EntryPoint = "GetDoubleClickTime")]
    public extern static int GetDoubleClickTime();

    const int SM_SWAPBUTTON = 23;//如左右鼠标键已经交换,则为TRUE
    const int SPI_SETMOUSE = 4;//设置鼠标的移动速度
    const int SPI_GETMOUSESPEED = 112;//检索当前鼠标速度
    const uint SPIF_UPDATEINIFILE = 0x0001;//更新win.ini和(或)注册表中的用户配置文件
    const uint SPIF_SENDWININICHANGE = 0x0002;//该消息告诉应用程序已经改变了用户配置设置
    int aMouseinfo=0;

    private void Form1_Load(object sender, EventArgs e)
    {
        if (GetSystemMetrics(SM_SWAPBUTTON) == 0)//如果鼠标的左右键没有切换
        {
            pictureBox1.Image = null;//清空图片
            pictureBox1.Image = Properties.Resources.鼠标左键;//显示图片
            checkBox1.Checked = false;//设置复选框为不选中状态
        }
        else//如果鼠标左右切换
        {
            pictureBox1.Image = null;//清空图片
            pictureBox1.Image = Properties.Resources.鼠标右键;//显示图片
            checkBox1.Checked = true;//设置复选框为选中状态
        }
        int tem_n = 0;
        switch (Convert.ToInt32(DoubleClickTime_Get()))//获取鼠标的双击速度
        {
            case 900: tem_n = 0; break;
            case 830: tem_n = 1; break;
            case 760: tem_n = 2; break;
            case 690: tem_n = 3; break;
            case 620: tem_n = 4; break;
            case 550: tem_n = 5; break;
            case 480: tem_n = 6; break;
            case 410: tem_n = 7; break;
            case 340: tem_n = 8; break;
            case 270: tem_n = 9; break;
            case 200: tem_n = 10; break;
        }
        trackBar1.Value = tem_n;//显示鼠标的双击速度
        SystemParametersInfo(SPI_GETMOUSESPEED, 0, ref aMouseinfo, 0);//获取当前鼠标的移动速度
        trackBar2.Value = aMouseinfo;//显示当前鼠标的移动速度
    }

    public string DoubleClickTime_Get()
    {
        return GetDoubleClickTime().ToString();//获取鼠标的双击速度
    }

    public void DoubleClickTime_Set(int MouseDoubleClickTime)
    {
        SetDoubleClickTime(MouseDoubleClickTime);//设置获取鼠标的双击速度
    }

    private void checkBox1_MouseUp(object sender, MouseEventArgs e)
    {
        if (((CheckBox)sender).Checked == true)//如果为选中状态
        {
            pictureBox1.Image = null;//清空图片
            pictureBox1.Image = Properties.Resources.鼠标右键;//显示图片
            SwapMouseButton(1);//切换鼠标左右键
        }
        else//如果不为选中状态
        {
            if (((CheckBox)sender).Checked == false)
            {
                pictureBox1.Image = null;//清空图片
                pictureBox1.Image = Properties.Resources.鼠标左键;//显示图片
                SwapMouseButton(0);//恢复,设置左键为主键
            }
        }
    }

    private void trackBar1_Scroll(object sender, EventArgs e)
    {
        int tem_n = 0;
        switch (((TrackBar)sender).Value)//记录鼠标的双击速度
        {
            case 0: tem_n = 900; break;
            case 1: tem_n = 830; break;
            case 2: tem_n = 760; break;
            case 3: tem_n = 690; break;
            case 4: tem_n = 620; break;
            case 5: tem_n = 550; break;
            case 6: tem_n = 480; break;
            case 7: tem_n = 410; break;
            case 8: tem_n = 340; break;
            case 9: tem_n = 270; break;
            case 10: tem_n = 200; break;
        }
        DoubleClickTime_Set(tem_n);//设置鼠标的双击的速度
    }

    private void trackBar2_Scroll(object sender, EventArgs e)
    {
        aMouseinfo = trackBar2.Value;//记录鼠标的移动速度
        SystemParametersInfo(SPI_SETMOUSE, 0, ref aMouseinfo, SPIF_UPDATEINIFILE);//设置鼠标的移动速度
    }
}
partial class Form1
{
    /// <summary>
    /// 必需的设计器变量。
    /// </summary>
    private System.ComponentModel.IContainer components = null;

    /// <summary>
    /// 清理所有正在使用的资源。
    /// </summary>
    /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
    protected override void Dispose(bool disposing)
    {
        if (disposing && (components != null))
        {
            components.Dispose();
        }
        base.Dispose(disposing);
    }

    #region Windows 窗体设计器生成的代码

    /// <summary>
    /// 设计器支持所需的方法 - 不要
    /// 使用代码编辑器修改此方法的内容。
    /// </summary>
    private void InitializeComponent()
    {
        this.groupBox1 = new System.Windows.Forms.GroupBox();
        this.textBox1 = new System.Windows.Forms.TextBox();
        this.checkBox1 = new System.Windows.Forms.CheckBox();
        this.groupBox2 = new System.Windows.Forms.GroupBox();
        this.label3 = new System.Windows.Forms.Label();
        this.label2 = new System.Windows.Forms.Label();
        this.label1 = new System.Windows.Forms.Label();
        this.trackBar1 = new System.Windows.Forms.TrackBar();
        this.textBox2 = new System.Windows.Forms.TextBox();
        this.groupBox3 = new System.Windows.Forms.GroupBox();
        this.trackBar2 = new System.Windows.Forms.TrackBar();
        this.pictureBox3 = new System.Windows.Forms.PictureBox();
        this.pictureBox2 = new System.Windows.Forms.PictureBox();
        this.pictureBox1 = new System.Windows.Forms.PictureBox();
        this.label4 = new System.Windows.Forms.Label();
        this.label5 = new System.Windows.Forms.Label();
        this.label6 = new System.Windows.Forms.Label();
        this.groupBox1.SuspendLayout();
        this.groupBox2.SuspendLayout();
        ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit();
        this.groupBox3.SuspendLayout();
        ((System.ComponentModel.ISupportInitialize)(this.trackBar2)).BeginInit();
        ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit();
        ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
        ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
        this.SuspendLayout();
        //
        // groupBox1
        //
        this.groupBox1.Controls.Add(this.pictureBox1);
        this.groupBox1.Controls.Add(this.textBox1);
        this.groupBox1.Controls.Add(this.checkBox1);
        this.groupBox1.Location = new System.Drawing.Point(12, 12);
        this.groupBox1.Name = "groupBox1";
        this.groupBox1.Size = new System.Drawing.Size(376, 131);
        this.groupBox1.TabIndex = 0;
        this.groupBox1.TabStop = false;
        this.groupBox1.Text = "鼠标键配置";
        //
        // textBox1
        //
        this.textBox1.BackColor = System.Drawing.Color.WhiteSmoke;
        this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
        this.textBox1.Location = new System.Drawing.Point(15, 51);
        this.textBox1.Multiline = true;
        this.textBox1.Name = "textBox1";
        this.textBox1.ReadOnly = true;
        this.textBox1.Size = new System.Drawing.Size(230, 28);
        this.textBox1.TabIndex = 3;
        this.textBox1.Text = "选择些复选框来将右按钮设成用于主要功能如选择和拖放之用";
        //
        // checkBox1
        //
        this.checkBox1.AutoSize = true;
        this.checkBox1.Location = new System.Drawing.Point(15, 29);
        this.checkBox1.Name = "checkBox1";
        this.checkBox1.Size = new System.Drawing.Size(144, 16);
        this.checkBox1.TabIndex = 0;
        this.checkBox1.Text = "切换主要和次要的按钮";
        this.checkBox1.UseVisualStyleBackColor = true;
        this.checkBox1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.checkBox1_MouseUp);
        //
        // groupBox2
        //
        this.groupBox2.Controls.Add(this.pictureBox2);
        this.groupBox2.Controls.Add(this.label3);
        this.groupBox2.Controls.Add(this.label2);
        this.groupBox2.Controls.Add(this.label1);
        this.groupBox2.Controls.Add(this.trackBar1);
        this.groupBox2.Controls.Add(this.textBox2);
        this.groupBox2.Location = new System.Drawing.Point(12, 149);
        this.groupBox2.Name = "groupBox2";
        this.groupBox2.Size = new System.Drawing.Size(376, 100);
        this.groupBox2.TabIndex = 1;
        this.groupBox2.TabStop = false;
        this.groupBox2.Text = "双击速度";
        //
        // label3
        //
        this.label3.AutoSize = true;
        this.label3.Location = new System.Drawing.Point(227, 62);
        this.label3.Name = "label3";
        this.label3.Size = new System.Drawing.Size(17, 12);
        this.label3.TabIndex = 4;
        this.label3.Text = "快";
        //
        // label2
        //
        this.label2.AutoSize = true;
        this.label2.Location = new System.Drawing.Point(78, 62);
        this.label2.Name = "label2";
        this.label2.Size = new System.Drawing.Size(17, 12);
        this.label2.TabIndex = 3;
        this.label2.Text = "慢";
        //
        // label1
        //
        this.label1.AutoSize = true;
        this.label1.Location = new System.Drawing.Point(13, 60);
        this.label1.Name = "label1";
        this.label1.Size = new System.Drawing.Size(59, 12);
        this.label1.TabIndex = 2;
        this.label1.Text = "速度(D):";
        //
        // trackBar1
        //
        this.trackBar1.AutoSize = false;
        this.trackBar1.Location = new System.Drawing.Point(97, 56);
        this.trackBar1.Name = "trackBar1";
        this.trackBar1.Size = new System.Drawing.Size(126, 30);
        this.trackBar1.TabIndex = 1;
        this.trackBar1.Scroll += new System.EventHandler(this.trackBar1_Scroll);
        //
        // textBox2
        //
        this.textBox2.BackColor = System.Drawing.Color.WhiteSmoke;
        this.textBox2.BorderStyle = System.Windows.Forms.BorderStyle.None;
        this.textBox2.Location = new System.Drawing.Point(15, 20);
        this.textBox2.Multiline = true;
        this.textBox2.Name = "textBox2";
        this.textBox2.ReadOnly = true;
        this.textBox2.Size = new System.Drawing.Size(230, 30);
        this.textBox2.TabIndex = 0;
        this.textBox2.Text = "双击文件夹以检测您的设置。如文件夹没打开或关闭,请用慢一点的设置再试一资。";
        //
        // groupBox3
        //
        this.groupBox3.Controls.Add(this.label6);
        this.groupBox3.Controls.Add(this.label5);
        this.groupBox3.Controls.Add(this.label4);
        this.groupBox3.Controls.Add(this.pictureBox3);
        this.groupBox3.Controls.Add(this.trackBar2);
        this.groupBox3.Location = new System.Drawing.Point(12, 255);
        this.groupBox3.Name = "groupBox3";
        this.groupBox3.Size = new System.Drawing.Size(376, 93);
        this.groupBox3.TabIndex = 2;
        this.groupBox3.TabStop = false;
        this.groupBox3.Text = "移动";
        //
        // trackBar2
        //
        this.trackBar2.AutoSize = false;
        this.trackBar2.Location = new System.Drawing.Point(108, 49);
        this.trackBar2.Maximum = 20;
        this.trackBar2.Minimum = 1;
        this.trackBar2.Name = "trackBar2";
        this.trackBar2.Size = new System.Drawing.Size(148, 34);
        this.trackBar2.TabIndex = 0;
        this.trackBar2.Value = 1;
        this.trackBar2.Scroll += new System.EventHandler(this.trackBar2_Scroll);
        //
        // pictureBox3
        //
        this.pictureBox3.Image = global::鼠标设置器.Properties.Resources.移动;
        this.pictureBox3.Location = new System.Drawing.Point(15, 20);
        this.pictureBox3.Name = "pictureBox3";
        this.pictureBox3.Size = new System.Drawing.Size(43, 37);
        this.pictureBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
        this.pictureBox3.TabIndex = 1;
        this.pictureBox3.TabStop = false;
        //
        // pictureBox2
        //
        this.pictureBox2.Image = global::鼠标设置器.Properties.Resources.文件夹;
        this.pictureBox2.Location = new System.Drawing.Point(301, 23);
        this.pictureBox2.Name = "pictureBox2";
        this.pictureBox2.Size = new System.Drawing.Size(60, 57);
        this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
        this.pictureBox2.TabIndex = 5;
        this.pictureBox2.TabStop = false;
        //
        // pictureBox1
        //
        this.pictureBox1.Image = global::鼠标设置器.Properties.Resources.鼠标左键;
        this.pictureBox1.Location = new System.Drawing.Point(263, 18);
        this.pictureBox1.Name = "pictureBox1";
        this.pictureBox1.Size = new System.Drawing.Size(98, 101);
        this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
        this.pictureBox1.TabIndex = 4;
        this.pictureBox1.TabStop = false;
        //
        // label4
        //
        this.label4.AutoSize = true;
        this.label4.Location = new System.Drawing.Point(64, 20);
        this.label4.Name = "label4";
        this.label4.Size = new System.Drawing.Size(113, 12);
        this.label4.TabIndex = 2;
        this.label4.Text = "选择指针移动速度:";
        //
        // label5
        //
        this.label5.AutoSize = true;
        this.label5.Location = new System.Drawing.Point(87, 55);
        this.label5.Name = "label5";
        this.label5.Size = new System.Drawing.Size(17, 12);
        this.label5.TabIndex = 3;
        this.label5.Text = "慢";
        //
        // label6
        //
        this.label6.AutoSize = true;
        this.label6.Location = new System.Drawing.Point(260, 55);
        this.label6.Name = "label6";
        this.label6.Size = new System.Drawing.Size(17, 12);
        this.label6.TabIndex = 4;
        this.label6.Text = "快";
        //
        // Form1
        //
        this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
        this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
        this.BackColor = System.Drawing.Color.WhiteSmoke;
        this.ClientSize = new System.Drawing.Size(398, 358);
        this.Controls.Add(this.groupBox3);
        this.Controls.Add(this.groupBox2);
        this.Controls.Add(this.groupBox1);
        this.Name = "Form1";
        this.Text = "鼠标设置";
        this.Load += new System.EventHandler(this.Form1_Load);
        this.groupBox1.ResumeLayout(false);
        this.groupBox1.PerformLayout();
        this.groupBox2.ResumeLayout(false);
        this.groupBox2.PerformLayout();
        ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit();
        this.groupBox3.ResumeLayout(false);
        this.groupBox3.PerformLayout();
        ((System.ComponentModel.ISupportInitialize)(this.trackBar2)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
        this.ResumeLayout(false);

    }

    #endregion

    private System.Windows.Forms.GroupBox groupBox1;
    private System.Windows.Forms.GroupBox groupBox2;
    private System.Windows.Forms.GroupBox groupBox3;
    private System.Windows.Forms.CheckBox checkBox1;
    private System.Windows.Forms.TextBox textBox1;
    private System.Windows.Forms.PictureBox pictureBox1;
    private System.Windows.Forms.TextBox textBox2;
    private System.Windows.Forms.Label label3;
    private System.Windows.Forms.Label label2;
    private System.Windows.Forms.Label label1;
    private System.Windows.Forms.TrackBar trackBar1;
    private System.Windows.Forms.PictureBox pictureBox2;
    private System.Windows.Forms.TrackBar trackBar2;
    private System.Windows.Forms.PictureBox pictureBox3;
    private System.Windows.Forms.Label label6;
    private System.Windows.Forms.Label label5;
    private System.Windows.Forms.Label label4;
}

到此这篇关于基于C#实现鼠标设置功能的文章就介绍到这了,更多相关C#鼠标设置内容请搜索我们以前的文章或继续浏览下面的相关文章希望大家以后多多支持我们!

(0)

相关推荐

  • C#模拟实现鼠标自动点击与消息发送功能

    目录 实现功能 开发环境 实现代码 实现效果 一个简单的实现版本,没有去Hook键鼠等操作,事先录制好操作步骤(将鼠标移动到需要操作的位置,按下热键执行相应动作),点击运行即可. 主要还是用windows api来实现,模拟点击.右击.双击.发送文本等. 代码可能略长一点,下面发下关键代码 主要的思路就是操作热键的时候,将操作类型以及坐标记录到一个List中,然后利用Windows Api循环执行List中的数据 实现功能 模拟鼠标点击.文本输入 开发环境 开发工具: Visual Studio

  • C# Chart折线图使用鼠标滚轮放大、缩小和平移曲线方式

    目录 Chart折线图使用鼠标滚轮放大.缩小和平移曲线 添加鼠标滚轮事件 初始化有关参数 添加鼠标按下.弹起和移动事件 如何使用Chart图表 效果图 数据 图表 外观 Chart折线图使用鼠标滚轮放大.缩小和平移曲线 使用鼠标滚轮滚动放大和缩小X轴的宽度,鼠标左键按住拖动实现曲线的左右平移,不再使用滚动条. 添加鼠标滚轮事件 在chart控件自带的鼠标事件中并没有鼠标的滚轮事件,因此需要手动添加一下,在窗体的Designer.cs文件下的InitializeComponent()函数中添加如下

  • C#实现鼠标裁剪图像功能

    本文实例为大家分享了C#实现鼠标裁剪图像的具体代码,供大家参考,具体内容如下 C#的图像裁剪很容易操作,这里给个实现的例子. 关键是需要处理鼠标的事件和一些更新 实现鼠标移动的代码.注意更新不要全部重画,只有选择矩形部分重画 private void Form1_MouseMove(object sender, MouseEventArgs e) { if (Track_move) endpoint = new Point(e.X, e.Y); else { return; } rect1 =

  • C#实现鼠标消息捕获

    在C#中怎样禁用鼠标按键,我们可以通过ImessageFilter接口下的PreFilterMessage方法.Application类的AddMessageFilter方法,RemoveMessageFilter方法和Message结构的Msg属性来禁用鼠标左键.Message结构包装Windows发送的消息,可使用该结构包装消息,并将其分配给窗口过程以进行调度,还可以使用该结构获取系统向应用程序或控件发送的关于某个消息的信息. 使用PreFilterMessage方法在调度消息之前将其筛选出

  • 基于C#实现鼠标设置功能

    目录 实践过程 效果 代码 实践过程 效果 代码 public partial class Form1 : Form { public Form1() { InitializeComponent(); } [System.Runtime.InteropServices.DllImport("user32.dll", EntryPoint = "SwapMouseButton")] public extern static int SwapMouseButton(in

  • python 基于selenium实现鼠标拖拽功能

    1.准备html文件 首先我们需要准备一个鼠标滑动的html文件,用来演示鼠标滑动的效果,注意需要将我们的html文件放在自己的服务器上, 这样我们才能够通过selenium来进行验证.html文件如下: <html> <head> <meta charset="utf-8" /> <style> body { margin: 0; padding: 0; } input{ appearance:none; -moz-appearance

  • 如何基于Springboot完成新增员工功能并设置全局异常处理器

    目录 1. 新增员工 1.1 需求分析 1.2 数据模型 1.3 程序执行流程 1.4 代码实现 2 全局异常处理 2.1 新增员工存在的问题 2.2 全局异常处理思路 2.3 全局异常处理器 2.4 全局异常处理器代码实现 2.5 测试 总结 1. 新增员工 1.1 需求分析 后台系统中可以管理员工信息,通过新增员工来添加后台系统用户.点击[添加员工]按钮跳转到新增页面,如下 当填写完表单信息, 点击"保存"按钮后, 会提交该表单的数据到服务端, 在服务端中需要接受数据, 然后将数据

  • 基于JavaScript实现图片裁剪功能

    目录 一.图片文件的上传和读取 二.图片展示和蒙层处理 CSS clip-path 三.裁剪框展示 裁剪框的缩放点 cursor 鼠标样式 四.裁剪框移动事件 五.裁剪框缩放操作 六.完成裁剪功能 drawImage 后记 在前端开发中,当遇到图片或头像上传等功能时,有尺寸分辨率限制的话,就需要用到图片的裁剪功能.想了解图片基础知识的,可见前文图片基础知识介绍. 而canvas的使用,对于我们直接在web端实现图片裁剪功能成为可能.本文将使用前端技术实现一个图片的裁剪功能. 一.图片文件的上传和

  • jQuery基于cookie实现换肤功能实例

    本文实例讲述了jQuery基于cookie实现换肤功能.分享给大家供大家参考,具体如下: 换肤,在你使用QQ.浏览器.酷狗等软件时,总是能看到这两个字(也有叫皮肤).不过换肤的确能解决很多人的口味,换肤看似一个无关紧要的功能,但其实能起到吸引用户的作用.好啦,话不多说,开始上课. 附上本人的代码: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xh

  • php基于SQLite实现的分页功能示例

    本文实例讲述了php基于SQLite实现的分页功能.分享给大家供大家参考,具体如下: 这里操作数据库文件使用的是前面文章<PHP基于PDO实现的SQLite操作类[包含增删改查及事务等操作]>中的SQLite数据库操作类.废话不说,直接上代码: <meta charset='utf-8'> <?php class SqlitePage{ public function __construct() { $this->table_name=''; $this->tj=

  • 基于ThinkPHP实现的日历功能实例详解

    本文实例讲述了基于ThinkPHP实现的日历功能.分享给大家供大家参考,具体如下: 开发环境介绍 最新,闲来没事,便开发了一款简单的日历,来统计工作情况.为了开发便捷,使用ThinkPHP架构.界面如下图 备注:每页包含上一个月,当前月,下一个月的日期,并用不同的颜色区分,如果某天工作了,便圈出来. 主要是以下两个文件 重要文件描述 功能文件 CalenDar.class.php主要负责,获取日历详细信息的,不涉及用户数据操作. 代码如下: <?php namespace Util; class

  • javascript基于定时器实现进度条功能实例

    本文实例讲述了javascript基于定时器实现进度条功能.分享给大家供大家参考,具体如下: Javascript 中的定时器 window度一线下面的方法 window.setInterval() 启动定时器 1.setInterval(function(函数),time(每隔多少时间执行一次函数,单位是毫秒)) 会重复执行某项操作 2.setTimeout 运用在延迟一段时间,再进行某项操作 setTimeout(function,time) ,setTimeout 不会重复! 停止定时器

  • Java实现鼠标拖放功能的方法

    本文实例讲述了Java利用鼠标的拖放来实现交换程序数据的方法,即所谓的鼠标拖放功能.鼠标的拖放功能在图形化系统中非常常用,Java 提供了java.awt.dnd 和java.awt.datatransfer 包来支持该功能.本例演示如何在程序中实现拖放的实现方法,当在窗口上部的"Hello World!"标签点下鼠标,并拖至窗口下部的文本框放开,则在文本框中将添加"Hello World !"文本:继续上述过程,将继续添加该文本. 该程序功能具体的实现思路和方法为

  • 基于LayUI实现前端分页功能的方法

    一.LayUI介绍 Layui 是一款采用自身模块规范编写的国产前端UI框架,遵循原生HTML/CSS/JS的书写与组织形式,门槛极低,拿来即用.内置了一些常用元素和组件的UI框架. 下载地址为http://www.layui.com/,下载后引入项目中. <link rel="stylesheet" href="${pageContext.request.contextPath}/css/layui/css/layui.css" rel="exte

随机推荐