随笔分类 -  [05] JavaScript/Ajax

用于设计网页/网站。AJAX提高用户体验。
摘要:import * as XLSX from 'xlsx'; //展示的顺序,把data中对象的属性按照你想要的顺序排放就可以了, const header = ["pId","dID"] //展示的名称 const headerDisplay = {pId:"项编号",dID:"D编号"}; //将 阅读全文
posted @ 2024-10-04 17:23 emanlee 阅读(125) 评论(0) 推荐(0) 编辑
摘要:javascript 省略号(...) 解构赋值 解构赋值可以从等号右侧的值中提取一个或多个保存到左边的变量中: let [a, b] = [1, 2] //let a=1, b=2 通常情况左侧多余的变量会被设置为undefined,右侧多余的变量会被忽略: let [a, b] = [1] // 阅读全文
posted @ 2022-10-18 16:32 emanlee 阅读(170) 评论(0) 推荐(0) 编辑
摘要:node_modules npm 加载的项目依赖模块 在很多时候,我们要拷贝或上传一份vue的代码时,通常会删掉依赖包node_modules,因为这个包太大了,而且,我们运行项目的时候,如果没有依赖包,重新下载依赖包就可以了,很方便的,接下来给大家介绍介绍具体步骤:1)首先我要把项目中的依赖包(文 阅读全文
posted @ 2022-09-20 20:25 emanlee 阅读(886) 评论(0) 推荐(0) 编辑
摘要:一、importimport在引入文件路径时,引入一个依赖包,不需要相对路径。 如:import app from ‘app’; 但引入一个自己写的 js 文件,需要相对路径。 如:import app from ‘./app.js’; 引入第三方插件,不需要相对路径。 import Vue fro 阅读全文
posted @ 2022-09-20 20:03 emanlee 阅读(4970) 评论(0) 推荐(0) 编辑
摘要:ES6 (ECMAScript 6)中的模块是一个包含 JavaScript 代码的文件,在这个模块中所有的变量都对其他模块是不可见的,除非我们导出它。 ES6的模块系统大致分为导出(export)和导入(import)两个模块。 1、模块导出(export) 可以 导出 所有的最外层 函数 、 类 阅读全文
posted @ 2022-09-20 19:44 emanlee 阅读(3616) 评论(0) 推荐(1) 编辑
摘要:https://m.runoob.com/js/js-function-definition.html JavaScript 使用关键字 function 定义函数。 函数可以通过声明定义,也可以是一个表达式。 函数声明 在之前的教程中,你已经了解了函数声明的语法 : function functi 阅读全文
posted @ 2022-09-19 22:45 emanlee 阅读(29) 评论(0) 推荐(0) 编辑
摘要:TypeScript 和 JavaScript 是目前项目开发中较为流行的两种脚本语言,TypeScript 是 JavaScript 的一个超集,但是 TypeScript 与 JavaScript 之间又有什么样的区别呢?在选择开发语言时,又该如何抉择呢? 本文将会深入对比这两种语言,讨论两种语 阅读全文
posted @ 2021-09-04 19:22 emanlee 阅读(983) 评论(0) 推荐(0) 编辑
摘要:axios的发音是: 英[æksi:əʊs] 美[æksioʊs] 简介 Axios 是一个基于 promise 的 HTTP 库,可以用在浏览器和 node.js 中。 说明 axios介绍: 首先需要知道:axios不是一种新的技术。 axios 是一个基于Promise 用于浏览器和 node 阅读全文
posted @ 2021-08-22 23:01 emanlee 阅读(1015) 评论(0) 推荐(0) 编辑
摘要:highcharts network 网络图 要在边上加上箭头,十分困难? Re: HighCharts Network Graph Arrow Links Wed Jul 15, 2020 9:47 am Hi!Welcome to our forum and thanks for contact 阅读全文
posted @ 2020-12-23 22:43 emanlee 阅读(533) 评论(0) 推荐(0) 编辑
摘要:JavaScript操作checkbox的方式和操作radio的方式相似,都是利用元素项的checked属性来完成。先获取checkbox元素集合,遍历集合,对集合中的每一项做操作。 <body> <p> <label for="hobby">Hobby: <input type="checkbox 阅读全文
posted @ 2020-12-12 13:02 emanlee 阅读(763) 评论(0) 推荐(0) 编辑
摘要:<script src="http://cdn.jsdelivr.net/g/filesaver.js"></script> <script> function SaveAsFile(t,f,m) { try { var b = new Blob([t],{type:m}); saveAs(b, f 阅读全文
posted @ 2020-12-03 14:54 emanlee 阅读(885) 评论(0) 推荐(0) 编辑
摘要:var haha=document.getElementById("Conds").value;haha=haha.replace(/<br>/g,"\n").replace(new RegExp(/( )/g),"");document.getElementById("Conds").value= 阅读全文
posted @ 2020-11-11 20:32 emanlee 阅读(374) 评论(0) 推荐(0) 编辑
摘要:The DOM Explorer tool (CTRL + 1)The The DOM Explorer tool shows the structure of your webpage as it's being rendered in the browser and makes it possi... 阅读全文
posted @ 2015-06-02 20:38 emanlee 阅读(631) 评论(0) 推荐(0) 编辑
摘要:http://jquery.com/http://jqueryui.com/http://www.jqueryrain.com/http://plugins.jquery.com/http://www.jqueryscript.net/http://jqueryhouse.com/ 阅读全文
posted @ 2015-05-29 22:19 emanlee 阅读(379) 评论(0) 推荐(0) 编辑
摘要:Extracted from: http://stackoverflow.com/questions/16061894/jquery-easyui-add-link-to-cellHTML: 1 5 6 7 Kunde 8 Name 9 Funktion10 ... 阅读全文
posted @ 2014-02-14 09:25 emanlee 阅读(2469) 评论(0) 推荐(0) 编辑
摘要:以下操作cookie在Firefox和Safari中测试成功,在IE中失败(读取、获取,改写,设置)。 经过反复测试,发现把http://127.0.0.1改为http://localhost之后,IE中也可以正常运行。 function getCookie(c_name) { if (document.cookie.length > 0) { c_start = document.coo... 阅读全文
posted @ 2010-07-27 22:29 emanlee 阅读(525) 评论(0) 推荐(0) 编辑
摘要:在 Visual Studio 2005下设置断点调试 我自己的断点调试的方法是: 1. IE浏览器下Internet选项 --> 高级 --> 去掉 禁用脚本调试 的勾。 2. 在JS里面写上 debugger; 然后设置断点, F5运行调试。 我的Visual Studio 2008不能为javascript设置断点; 把光标放到JS代码中,按F9没有反应 ? http://hi.... 阅读全文
posted @ 2010-07-27 22:23 emanlee 阅读(1637) 评论(0) 推荐(0) 编辑
摘要:代码: master_headertop =document.getElementById('master_headertop'); if (master_headertop)       master_headertop.style.display = 'none'; 错误提示: Object doesn't support this pr... 阅读全文
posted @ 2010-07-24 23:05 emanlee 阅读(715) 评论(0) 推荐(0) 编辑
摘要:In the previous tutorial we discussed about accessible properties of calendar control and found the different types of views of AJAX Calendar extender control. Here we will learn how to change the default view of calendar control from days view to month or year view by using the internal function of 阅读全文
posted @ 2010-04-29 13:51 emanlee 阅读(1433) 评论(0) 推荐(0) 编辑
摘要:以下代码 IE, Maxthon 中可以运行: <html>     <head>     <meta   http-equiv="Content-Type"   content="text/html;   chars... 阅读全文
posted @ 2010-03-27 11:46 emanlee 阅读(1427) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示