随笔分类 - JS/JQuery/Html/CSS
所有与页面和js有关的
摘要:1、华为手机:设置-关于手机-在版本上敲7下开启开发者模式。 在系统和更新-》开发人员选项-》USB调试选上。 把仅允电改为传输文件。 2、Chrome 浏览器上开新的标签输入 chrome://inspect 保证勾上 确保已经勾选了“Discover USB devices”。 3、在手机浏览器
阅读全文
摘要:什么是mime-type 简单来讲,它的作用就是服务器告诉浏览器你这个内容到底是个什么东东,是一张网页?还是一张图片?还是一个视频?浏览器只有知道了你这是个什么东西,才能正确处理它,mime就是这个东西,服务器通过Content-Type这个header来指定mime。 将xml转换成markdow
阅读全文
摘要:javasecript 生成 从2022年到当前季度的所以季度,排倒序 function getQuarter(year, quarter) { return year + "年" + quarter + "季度"; } function generateQuarters() { var curre
阅读全文
摘要:function generateMonthArray() { var startYear = 2023; var startMonth = 2; // May is represented by 4 in JavaScript's Date object var currentDate = new
阅读全文
摘要:// base64 转 二进制流(blob) dataURLtoBlob(dataurl) { var arr = dataurl.split(","), mime = arr[0].match(/:(.*?);/)[1], bstr = atob(arr[1]), n = bstr.length,
阅读全文
摘要:1.在工具栏的”视图“下打开终端或者ctrl+`2.安装jsencrypt ,安装的东西都会在node_module下 npm i jsencrypt 3.在需要加密的文档中引入 import JSEncrypt from '../../node_modules/jsencrypt/bin/jsen
阅读全文
摘要:js取url各部分数据 //使用字符索引对URL进行解析 parseURL(url):any{ //解析协议 var protocal = url.substring(0, url.indexOf(':')); //alert('protocal:' + protocal); //解析域名和端口 v
阅读全文
摘要:https://blog.csdn.net/foupwang/article/details/103306332 npm install javascript-obfuscator -g javascript-obfuscator config.js --config HunxiaoConfig.j
阅读全文
摘要:问题:html 锚点 点击后上面的导航栏被顶上去看不见了 原因:easyui 的属性 data-options="region:'center'" 导致问题,去掉则正常!
阅读全文
摘要:String.prototype.trim = function () { return this.replace(/(^\s*)|(\s*$)/g, ""); } String.prototype.ltrim = function () { return this.replace(/(^\s*)/
阅读全文
摘要:复制:https://blog.csdn.net/weixin_37726470/article/details/83871928 在进行js练习的时候,遇到了一个问题,在操作页面跳转的时候,使用window.location.href无法进行跳转,经过一系列的排查,和分析,最终解决这个问题。 $(
阅读全文
摘要:文件扩展名Content-Type(Mime-Type)文件扩展名Content-Type(Mime-Type) .*( 二进制流,不知道下载文件类型) application/octet-stream .tif image/tiff .001 application/x-001 .301 appl
阅读全文
摘要:效果如下: 代码如下: $("#DepartmentCode").comboex({ data: [{ "value": "", "text": "全部" }, { "value": "001", "text": "部门1" }, { "value": "002", "text": "部门2" },
阅读全文
摘要:easyui DataGrid 宽度老是调整不好,可能是列中有重命字段
阅读全文
摘要:<iframe scrolling="no" frameborder="no" border="0" onload="this.height=this.contentWindow.document.body.scrollHeight" src="url地址"/> <iframe scrolling=
阅读全文
摘要:复制到文件夹好像不行: eclipse 要复制进去才行
阅读全文
摘要:真正四舍五入 //toFixed兼容方法,四舍五入 Number.prototype.toFixed = function (len) { if (len > 20 || len < 0) { throw new RangeError('toFixed() digits argument must
阅读全文