js打印正三角实现方法
js打印正三角 {代码...} 点击查看 原文地址
2020-04-06
RV64I ISS 精简指令
RV64I ISSComputer ArchitectureAssignment — RISC-V RV64I ISS — Stage 1Your task for this assignment is to develop an instruction set simulator (ISS) for the RV64I subset of the RISC-Vinstruction set. An instruction set simulator is a program used by computer architects to simulate execution of aco...
2022-05-06
前端页面禁止调试debugger方法汇总
1.打开控制台直接跳转页面 {代码...} 2.打开控制台,页面内容显示"检测到非法调试,请关闭后刷新重试!" {代码...}
2020-03-06
一文理解拉格朗日对偶和KKT条件
$$ \begin{gather*} \underset{t}{min} f(t) \; s.t.\; h_i(t)=0,i=1,\cdots,p \end{gather*} $$
2018-09-09
APICloud开发者进阶之路|[ 模块教程 ] touping模块demo示例
touping模块实现局域网内基于DLNA的视频投屏功能,并支持搜索设备,投屏播放,调节播放进度,调节音量,退出投屏等功能。`1. <!DOCTYPE HTML>
2020-04-17
03. 【Node.js Module】Publish a Node.js Module to the NPM Registry
I'm practicing my English ability lately in order to be recruited by a foreign company for my next job-hopping,if there is anything that I did't express precisely, please pardon me.
2018-11-29
微信小程序防抖
这里主要用到闭包,将函数内的值保存下来,下次点击的时候进入判断,如果定时器启动了,则清除定时器,直到最后一次启动定时器,也就是说,在规定的时间内只会触发最后一次定时器,从而达到防抖效果。
2023-01-30
COMP90038 Enrolment number
Enrolment number (student number):The University of MelbournePractice Exam PaperSchool of Computing and Information SystemsCOMP90038 Algorithms and ComplexityReading Time: 15 minutesExam Duration: 3 hoursThis paper has 11 pages, including this front page.Authorised Materials:None. This is a close...
2021-06-20
MA109 PRACTICE 解答
PRACTICE FINAL SOLUTIONS - MA109Problem 1 (10 pts):A (2 pts): Write down the definition of a surjective function from the set X to the set Y .A function f : X → Y is surjective if for every y ∈ Y , there is x ∈ X with f(x) = y.B (2 pts): Given n, k ∈ N ∪ {0} with n ≥ k, write down the definition ...
2022-06-05
JQuery3
数据请求:异步加载数据:页面卡顿少同步加载数据:当数据量较大,或者网络不好,有可能页面卡顿同步请求:交易*/异步加载load(url, [callback])url:接口 路由callback:回调函数 无论数据是否请求成功,只要请求完成,就会执行
一些能提高ABAP开发人员日常工作效率的ABAP小工具
I write some small ABAP tools for my daily work. Some of them might not be so useful at first glance – I just write them for fun. Some of them could be used to improve work efficiency, to just reduce several mouse clicks – I am too lazy
2020-08-26
获取图片主体背景色
当网络不好的时候,图片未加载出来,先加载背景色,当时就觉得很有意思,效果是这样主要用到rgbaster.js,这里我把源码也贴下来。rgbaster.js的内容是: {代码...} 具体html和js的使用代码是: {代码...} 剩下的,效果一出,大家一目了然,就是这么简单。
2018-09-17
angular用于计算一系列数据总和的filter
调试可以发现,在页面刷新的时候,会进入计算得到sum,但是当我添加新支出时,是不会进入计算sum的,原因我不得而知,且不论我写的是否规范正确,如果你知道原因的,可以告诉我吗,谢谢。
闭包--闭包之tab栏切换(四)
实际效果 {代码...} for循环后,直接调用事件 {代码...} 打开页面后,直接运行for循环,打印出0,1,2,然后执行i++,所以oList[i].onclick之前i=3;再次点击tab栏 给oList[i],新增一个key:Index, {代码...} 点击第一个的时候 闭包1 利用闭包的保存作用 {代码...} 闭包1,更优雅 利用闭包的保存作用 {代码...} es6 let块级作用...
2018-11-15
JavaScript使textarea自动增高和input自动增长
input高度固定,自动增长<input type="text" style="width:60;overflow-x:visible;overflow-y:visible;">textarea 宽度固定,自动增高<textarea type="text" style="width:260;overflow-x:visible;overflow-y:visible;"></textarea>
2019-11-25
偶尔兴趣之coffeescript
我对于npm install之类的东西有点恐惧, 因为node.js让我无所适从,一个前端的js竟然能够做后端服务器,真实令人惊讶。然而,我对于node之类的了解也就止步于此了 昨天在elance的群里看到有大神说道coffeescript对javascript做了很多的优化,心想,反正早晚都会用到,做后端的再不济也得有点前端的技能吧
canvas 弹幕效果
{代码...} 转载于猿2048:⇨《canvas 弹幕效果》
2019-10-13