使用ES6的fetch API读取数据时要注意的一个和cookie相关的坑
When I am doing a test of comparison between Stateful and Stateless BSP application ( mentioned in blog Stateless and Stateful – Different behavior in application side ), I meet with a strange issue.
2020-08-26
JavaScript 删除节点
JavaScript删除节点的方法:父节点.removeChild(子节点)。 以下为案例: 例,删除所有的p节点: {代码...} 例,删除li下,p节点中的br节点: {代码...} 例,删除li下,p节点中的br节点(br可能不存在): {代码...} 例,删除p中的所有span节点: {代码...} Demo,一键删除,所有span节点: {代码...} Demo,删除方块: {...
2017-11-25
STA314 解说
STA314 Fall 2021 Homework 4Homework 4Deadline: Monday, Nov. 29, at 11:59pm.Submission: You need to submit one file through Quercus with our answers to Questions 1, 2,and 3 as well as code requested for Question 3. You can produce the PDF file however you like(e.g. LATEX, Microsoft Word, scanner),...
2022-06-02
FIT1045算法分析
FIT1045 Algorithms and programming in Python, S1-2019Assignment 2 (value 18%).Due: Friday 17th May, 2019, 11:55 pmObjectivesThe objectives of this assignment are: To demonstrate the ability to implement algorithms using basic data structures and operations on them. To gain experience in designing...
2021-10-26
JavaScript ES6 Fetch API时需要注意的一个Cookie问题
When I am doing a test of comparison between Stateful and Stateless BSP application ( mentioned in blog Stateless and Stateful – Different behavior in application side ), I meet with a strange issue.
2020-05-07
javascript cookie传统用法
最简单的设置cookie的方法 {代码...} 用expires设置cookie过期时间 {代码...} 封装设置cookie、获取cookie和删除cookie方法 {代码...} 做一个小demo记住用户名 {代码...}
2018-08-27
讲解EEEN 60184 Communications
EEEN 60184Internet and CommunicationsNetworksLaboratory Assignment:Overview, Tasks 1, 2, 3 and 41.0 IntroductionThe laboratory work is concerned with simulating various aspects of wireless sensornetworks. The basic simulations use the Zuniga and Krishnamachari link model, but higherlayers of the ...
2021-06-22
怎么使用JavaScript代码?
defer 和 async当页面有多个 js 文件需要加载时,并不能确定其先后顺序,也就是异步加载(async),当js 文件之间有相互依赖时,可以加上 defer 关键字,这样页面会按照代码先后顺序进行加载。
2021-12-26
Matlab代码优化之道
一、 遵守Performance Acceleration的规则关于什么是“Performance Acceleration”请参阅matlab的帮助文件。1、只有使用以下数据类型,matlab才会对其加速:logical,char,int8,uint8,int16,uint16,int32,uint32,double而语句中如果使用了非以上的数据类型则不会加速,如numeric,cell,structure,single,function handle,jav...
2023-11-11
SAP UI5和Angular的事件处理机制比较
Recently I am studying Angular in my spare time. And I would like to write down here what I have learned about Angular, comparing its design with UI5. In this blog I will only focus on event handling topic.
2020-08-21
前台模板underscore使用方法
前端Ajax调取后台数据后,有时候需要使用模板引擎渲染部分页面,常用有underscore.js arttempalte.js等,使用underscore如下:
2017-07-18
SAP UI5框架Component.js里extend函数的实现原理
For every Fiori application we have Component.js, and there is a function extend() call. See one example below.What is the purpose of this function call and what functionality would it achieve?
2020-08-21
Promise与遍历(循环,无穷多的then)遇到的问题及三个解决方案
乍看没有问题啊,每一个新的master子函数的值是它上一个子函数的值加上一个then,但是一直报错——Maximum call stack size exceeded (node) / too much recursion (firefox)。(12/24圣诞夜更新:已解决,修改了部分代码见下文)
从jquery,zepto中提取的90行代码实现一个完整的ajax
{代码...} test {代码...}
JS面向对象2-综合案例
综合案例 图片放大镜效果 子集影响父级的bug {代码...} 上述问题的解决方式(1) {代码...} 上述问题的解决方式(2) {代码...} 图片的放大镜效果 {代码...} 苹果菜单 {代码...} 照片墙效果 可拖拽换为 可随机排序 找最小值和位置 {代码...} 照片墙的实现 {代码...}
2016-05-04
赛博朋克2077
前几天看到@徐小夕的文章,生成抖音风格的gif图,觉得蛮好玩的。于是自己写了一个生成赛博朋克风格2077风格的gif图生成器。原理和徐小夕一样,使用dom-to-image每间隔16ms生成一张图片,然后使用gif.js将图片合成gif图。生成gif图源码如下👇 {代码...} 最后的效果👇字体使用了赛博朋克的字体,字体抖动样式使用text-shadow...
javascript cookie的传统用法,用cookie做一个记住用户名的小功能
最简单的设置cookie的方法 {代码...} 用expires设置cookie过期时间 {代码...} 封装设置cookie、获取cookie和删除cookie方法 {代码...} 做一个小demo记住用户名 {代码...}
2018-08-28