2019/11/5

jquery对radio的操作

1:获取选中的 $('input:radio:checked').val(); $("input[type='radio']:checked").val(); $("input[name='rd']:checked").val(); 2.设置第一个Radio为选中值: $('input:radio:first').attr('checked', 'check…

  • 未分类
  • 2019/11/5
  • helei
  • 1,044
  • 2019/11/1

    js三种循环/延时 执行方法的方式

    setTimeout(function(){ alert("Hello"); }, 3000); //延时三秒后执行 //requestAnimFrame (循环执行)封装,可以兼容所有浏览器 window.requestAnimFrame = (function(){ return window.requestAnimati…

  • JavaScript
  • 2019/11/1
  • helei
  • 1,421
  • 2019/10/18

    chrome浏览器flash游戏无法输入中文

    在浏览器地址栏输入 chrome://flags/#site-isolation-trial-opt-out 将Disable site isolation 禁用

  • 未分类
  • 2019/10/18
  • helei
  • 1,214
  • 2019/9/26

    c# 打开exe

    Process process = new Process(); process.StartInfo.UseShellExecute = false;//是否重定向标准输入 process.StartInfo.RedirectStandardInput = false;//是否重定向标准转出 …

  • 未分类
  • 2019/9/26
  • helei
  • 1,052
  • 2019/8/26

    c# base64url 和HMACSha256加密

    private static string HMACSha256(string message, string secret) { secret = secret ?? ""; var encoding = new System.Text.ASCIIEncoding(); byte[] keyByte =…

  • c#
  • 2019/8/26
  • helei
  • 1,161
  • 2019/8/26

    c# base64 解码/编码 sha256加密

    /// <summary> /// sha256编码 /// </summary> /// <param name="data"></param> /// <returns></returns> public string sha256(string data) …

  • c#
  • 2019/8/26
  • helei
  • 1,085
  • 2019/8/22

    js对Array内对象根据属性值排序(键值对排序)

    var giftArr = new Array(); function Gift(name,num){ this.name=name; this.num=num; } giftArr.sort(function(a,b){ return b.num-a.num });

  • JavaScript
  • 2019/8/22
  • helei
  • 1,044