找到约 10000 条结果
  • js中性能更好的在数组头部插入大量数据
    今天闲着无聊测试了一下js数组splice方法的性能发现:当数组的长度大于100000的时候整个页面会出于比较长的卡死状态,故试着写了个性能更好的方法来实现批量在数组头部插入数据:
    2018-02-06
  • 构建php自己的无浸入式的链路追踪和性能监控
    最近阅读php源码,为了验证效果,写了一个php扩展,主要功能就是打造php自己的链路追踪和性能监控先从github下载源码 [链接]编译安装就可以使用了现在只是一个基本功能,后面慢慢完善核心功能就是改写php的执行函数,就是平时经常写的代理 {代码...} 执行时发现是要拦截的函数就获取函数的参数返回值记录日志,继续执行ph...
    2021-07-17
  • A fascinating technique that can greatly reduce your code
    It's a common way in most web developers that write JavaScript with ES6+ and then bundle it to ES5, so that it can run in all browsers. However, the modern browsers support ES6 natively so it's unnecessary to shipping a lot of polyfills.
    2019-04-08
  • 点击一列显示其index的三种方法
    {代码...}
    2017-02-24
  • ajax 源码解读之如何扩展 ajax 的功能
    需求场景:借助 ajaxTransport 来自定义扩展功能。 项目需求:jQuery 版本: 1.10.2,错误打点,发起 jsonp 请求发生错误的时候前端需要向打点地址发送一个请求。 简单演示: 测试代码: {代码...} 解决方案: {代码...} 需求场景:借助 ajaxSetup 新增 dataType. 项目需求:需要从服务器获取 yaml 文件,然后解析该文件...
    2016-04-06
  • MAT232H问题解决
    Assignment 2 - Summer 2022Due: July 10, 2022 at 11:59pm via CrowdMark.Unless otherwise stated, you must show your work.Question 1. Quadric surfaces:(a) Sketch the cross-sections of the surface x2 + 3y2 = 1 + z2 parallel to the xy-plane, the xz-plane, and theyz-plane. Identify the shapes of these ...
    2023-05-06
  • JS判断设备类型是否为电脑,是否为移动设备
    站长博客:[链接] PC判断是否为手机,代码如下 {代码...} 移动端判断是否为PC,代码如下 {代码...}
    2019-01-21
    6
  • Laravel延迟队列实现之Lua脚本解析
    Laravel在实现Redis延迟队列时使用了Lua脚本保证不同队列间操作的原子性在Laravel5.1中主要是通过4个Lua脚本方法保证不同队列操作的原子性的
    2018-04-16
  • Image Load Error Handler
    Put the code in the head and executed as the first inline script. So, it will listen the errors happen after the script.
    2018-11-19
  • Mastered in EVENT LOOP
    {代码...} What about your answer :)
    2018-11-15
  • 我ABAP开发生涯中搜集的一些有意思的数据库表
    Magic tablesCUS_IMGACH – IMG ActivitiesRFCATTRIB – Administration table for RFC destinationsSEOSUBCO – Class/interface subcomponentTVIMF – User routines called from view maintenanceMore to be added soonMagic reportsRADPROTA – Display DDIC activation logRSTABLESIZE – Determining Table SizesRSSDOCT...
    2020-08-31
  • jQuery内部对<script>标签的处理
    前言:本文只分析 jQuery 调用 append(‘<script>alert("xxx")’) 后,jQuery 对 <script> 的处理,关于 append()、domManip()、buildFragment() 等处理 待插入元素的函数,请看:当我调用了$().append()后,jQuery内部发生了什么?
    2019-03-31
  • ACS130分析实践
    Submit a video in which you demonstrate your code against the requirements I’ve set below,as well as demonstrating the output of your code. I will go through an example with you togive you an idea of what is expected in the video. Submission dropbox is “C Program Video”.a. You can use any video c...
    2022-04-15
  • CSC 120 编程
    CSC 120: Introduction to Computer Programming for Non-majorsSpring 2019Assignment 5Notes: For each question create a Python script with the name Question xxwhere xx is the question number. Provide your name and what program does in each script. Provide necessary comments. Once you are done, creat...
    2021-10-05
  • JavaScript之数组去重
    前言数组去重是很常见的,这里总结一下,自己学过的数组去重的方法1、数组遍历结合indexOfindexOf 方法可返回指定元素在数组中首次出现的位置,如果没有,就返回-1 {代码...} 2、SetSet 属于ES6提供的新的数据结构 {代码...} 3、includesincludes 可以用来判断数组中是否包含某个元素 {代码...} 4、reduce结合indexOfredu...
    2021-06-01
  • javascript函数(5)
    Js函数的定义函数:封装了一段可重复执行调用的代码块。目的:可以让大量代码重复使用求和函数的命名是动词,而变量名的命名是名词 {代码...} 函数的使用?1.声明函数2.调用函数声明函数 {代码...} 调用函数 {代码...} 注意事项function是声明函数的关键字,必须是小写函数是做某件事情,因此函数名为动词函数本身不执行...
    2020-08-13
  • 记录一下js遍历
    记性不好,记录一下。遍历数据,拼接入ul标签中。 {代码...} 结果
    2019-05-23