drag2

LPC1768开发套件深度解析:从Drag2Flash到ARM Cortex-M3实战应用 在嵌入式系统开发中,微控制器(MCU)是核心处理单元,其性能与外设集成度直接影响产品功能与开发效率。ARM Cortex-M3内核因其平衡的性能与功耗,成为工业控制、物联网网关等领域的常见选择。通过内置Flash编程(ISP/IAP)等机制,开发者可实现高效的固件更新与调试。本文聚焦NXP LPC1768开发套件,该平台集成了以太网、USB、音频编解码器等丰富外设,并创新性地采用Drag2Flash拖拽编程技术,极大简化了程序下载流程。这种将USB模拟为存储设备并结合Bootloader的设计,不仅提升了开 阅读详情
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<script>  
var  ms=0;  
var src=0;
var srcWidth=0;
var srcHeight=0;
var len="10px";
function  did(obj,targ){  
         ms
=obj;
         src
=targ;
         document.getElementById(src).style.backgroundColor
="#e0e0e0";
         
         document.getElementById(src).style.width
= "250px";
         document.getElementById(src).style.height
= "80px";
      
         
         event.srcElement.setCapture();  
         x
=document.all(ms).style.pixelLeft-event.x;  
         y
=document.all(ms).style.pixelTop-event.y;  
}
  

function  document.onmousemove(){  
if(ms){  
        
        
        
        
         
        document.getElementById(ms).style.pixelLeft
=x+event.x;  
         document.getElementById(ms).style.pixelLeft
=x+event.x;  
         document.getElementById(ms).style.pixelTop
=y+event.y;  
         }
  
}
  

function  document.onmouseup(){  
if(ms){  
        document.getElementById(src).style.backgroundColor
="#f2f2f2";
        document.getElementById(src).style.width
= "300px";
         document.getElementById(src).style.height
= "100px";
         event.srcElement.releaseCapture();  
         
         ms
=0;  
         }
  
}
  
</script>  

<body>
    
<div id="a1" style="position:absolute; ">
    
<div id="a2" onmousedown="did('a1','a2')"  style="background-color: #f2f2f2; height:100px; width:300px; cursor: move;">拖动层</div>
    
</div>
</body>
drag2封装.html 因公司需要,自己写了个js拖拽插件,div拖拽和拖拽边界限定,方便使用的小插件,内含注释,可以直接调用,代码简单易懂。 立即下载

相关推荐

Yokogawa DRVGII

Yokogawa DRVGII PC端软件· 英语版

Dagger2初步使用篇1

先上一个没有用Dragg2的例子:eg; 1 public class User { 2 private String name; 3 4 public String getName() { 5 return name; 6 } 7 8 public void setName(String name) { 9

qq_30519365的博客 1555

Windows Server 搭建ftp服务

Windows Server 搭建ftp服务

ch258563的博客 1017

android drag2有什么用,Android事件详解——拖放事件DragEvent(二)

1、Android拖放框架的作用?利用Android的拖放框架,可以让用户用拖放手势把一个View中的数据移到当前layout内的另一个View中去。2、拖放框架的内容?1)拖放事件类2)拖放监听器3)其他辅助的方法和类3、拖放过程?拖放过程有四个基本步骤:1)启动 为了响应用户开始拖动的手势,需要调用View的startDrag方法来通知系统。startDrag方法的参数需要指定所拖动的数据、元...

weixin_34887818的博客 666

华为ensp.访问控制列表(ACL):关于基本ACL和高级ACL————访问的代码基础讲解(允许或禁止访问)

ACL 目的:为了在设备进行通信时,保障传输的数据足够的安全可靠和网络的型能稳定。 访问控制列表((ACL)Access Coutrol List): 通过定义一些规则,根据规则对数据包进行分类,并针对不同的报文进行不同处理,从而可以实现对网络访问的控制.限制网络流量,提高网络性能,为了防止网络攻击等等。 ACL分类 分类 编号范围 参数 基本ACL 2000-2999 源IP地址等 高级ACL

m0_52479012的博客 2万+

仿真学习系列(三十一):Sigrity软件界面菜单栏学习(一)

Sigrity 的功能非常强大,根据不同的仿真对象与使用场景,被拆分为多个独立的专业组件(如 PowerSI、PowerDC、SystemSI、OptimizePI 等)。虽然各组件的界面布局略有不同,但整体菜单结构和操作逻辑是一致的。 为了降低入门门槛,本篇文章以 PowerSI 组件为例,带大家认识 Sigrity 软件中的核心菜单栏,并学习导入设计后常用的菜单功能。

案例文章,高速信号 669

android drag2有什么用,Android中神奇的ViewDragHelper

ViewDragHelper是针对 ViewGroup 中的拖拽和重新定位 views 操作时提供了一系列非常有用的方法和状态追踪。基本上使用在自定义ViewGroup处理拖拽中!所谓无图无真相。。。终极目标回弹效果本文知识点:常用API的说明ViewDragHelper的使用案例常见的使用案例1.常用API说明这里为什么先介绍API呢?因为上来我贴出来一堆代码你都不知道每个方法什么意思,会很痛苦...

weixin_30550287的博客 799

万字长文:YOLOv5+RK3588 NPU多线程加速全攻略——从理论到部署的终极优化

RK3588 NPU多线程加速优化教程摘要 本教程深入讲解了如何利用线程池技术优化RK3588 NPU上的YOLO目标检测模型推理性能。RK3588内置3个NPU核心,理论算力达6TOPS,为多线程优化提供了硬件基础。教程详细解析了线程池的核心组件(任务队列、工作线程、同步机制)和实现架构,包括类设计、初始化流程、工作线程逻辑(任务获取、NPU推理、结果存储三个阶段)以及任务提交/获取机制。通过预分配模型实例、线程绑定、流量控制等优化手段,实现了从单线程28FPS到多线程120FPS的显著性能提升,为边缘A

LXY_LOVE36的博客 1114

Dragger2的简单使用

a.什么是依赖:假设有2个类,在类B中有类A的实例,这时我们就说,B对A产生了依赖 public class Dog { … Cat cat; … public Dog() { cat = new Cat(); } } 分析:上面这个例子我们不难发现,有很大

guanyueliuxing的博客 811

深度学习-155-RAG技术之嵌入模型Embedding怎么选

Embedding技术在大型语言模型中发挥着至关重要的作用。它将文本转化为向量,使模型能够理解和处理复杂的语言信息。通过选择合适的Embedding方法和优化文本匹配策略,我们可以在搜索引擎、问答系统、推荐系统等领域实现高效且精准的文本匹配。

qq_20466211的博客 409

(11-3-01 )

以太坊(Ethereum)是一种基于区块链技术的开源平台和加密货币。它于2015年由Vitalik Buterin和Gavin Wood等开发者创建,并成为比特币之后最受欢迎的加密货币之一。以太坊不仅支持加密货币交易,还为开发者和企业提供了构建去中心化应用程序的强大工具。在本节的内容中,将实型一个完整的机器学习模型项目,智能检测出以太坊区块链中的非法账户。从问题定义到模型建立和评估,再到最终的总结和建议。本实例突出了处理类别不平衡问题的重要性,并展示了如何使用多种机器学习算法来解决实际问题。此外,通过数据可

码农三叔 2177

Android Dagger2原理

Dagger2原理 Dagger2是什么 Dagger2是一个Android和Java中的快速注射器。 什么是依赖注入 依赖注入是一种面向对象的编程模式,它的出现是为了降低耦合性,所谓耦合就是类之间依赖关系,所谓降低耦合就是降低类和类之间依赖关系。可能有的人说自己之前并没有使用过依赖注入,其实真的没有使用过吗?当我们在一个类的构造函数中通过参数引入另一个类的对象,或者通过set方法设置一个类的对象其实就是使用的依赖注入。 通常依赖注入有以下几种方式 通过接口注入 interface ClassBInterf

qq_46041134的博客 690

Qt C++ + Qt 3D 的数字孪生工厂

以下是一个基于 **Qt C++ + Qt 3D** 的数字孪生工厂完整源码示例,集成了 **Qt 3D** 产线建模和 **WebSocket** 实时数据交互。ui->qualifiedProductsLabel->setText(QString("合格产品: %1").arg(data.qualifiedProducts));ui->totalProductsLabel->setText(QString("总产量: %1").arg(data.totalProducts));

寒寒豆豆软件公司的博客 157

【如快 Tauri2 实践】窗口 drag 避坑

使用浏览器默认的 drag 会失效,需要使用 Tauri 自带的 drag,参考:https://github.com/ant-design/ant-design/issues/46318

qq_16813191的博客 849

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

visio安装包

Microsoft Office Visio 是一款专业的制图软件。利用经过更新的形状、协作工具和数据链接图表,创建专业级图表以简化复杂的信息。

H5的drag使用说明和vue2.0拖拽排序示例

html5 drag api详解  (引用原文https://www.cnblogs.com/wuya16/p/DragApi.html)      回想下,以前我们是怎么实现拖拽的,主要有以下几步:      1.目标元素绑定mousedown事件,记录下此时鼠标位置和拖拽元素的位置差,分别是 diffX ,diffY      2.在mousedown中绑定 document的mous...

tangcc的博客 3911

温度PID控制PLC程序

温度PID稳定控制程序,适用于欧姆龙PLC,对其他PLC也具有很大参考价值

HTML5 drag and drop上传参考音频给IndexTTS2

通过HTML5 Drag and Drop API,用户可直接将音频文件拖入网页,为IndexTTS2提供参考音频,实现情感化语音合成。该方案简化交互流程,提升用户体验,结合零样本适应技术,让AI精准还原语调与情绪。

weixin_42234168的博客 376

RU DOS版、EFI版32bit/64bit BIOS常用工具

DOS版、EFI版的RU工具,可用来查看IO、MEM、PCI、SMBIOS等资源。亲测在EFI SHELL下可用。

H5 FileReader+drag+ajax2.0+Formdata实现图片拖拽上传

概述 今天用H5的FileReader,drag,Formdata等仿照邮件的文件上传功能做了一个图片拖拽上传,主要流程如下: 1.监听元素的ondrop事件,并获取事件对象event.dataTransfer.files的值 2.用FileReader读取步骤1中获取的值并添加到动态创建的li中 3.用Formdata获取最终的值并用ajax2.0上传 注意项: ondragenter:需要阻止...

weixin_34376986的博客 107

Vue-drag-resize在Vue2和Vue3中的差异与兼容性指南

Vue-drag-resize是一款功能强大的Vue组件,支持在Vue2和Vue3项目中实现元素的拖拽和调整大小功能。本文将详细解析该组件在两个Vue版本中的核心差异,并提供实用的兼容性解决方案,帮助开发者快速上手并解决跨版本使用问题。 ## 核心功能与版本支持概述 Vue-drag-resize作为轻量级拖拽调整组件,核心功能包括: - 元素自由拖拽定位 - 多方向尺寸调整 - 网格吸附与比

gitblog_00004的博客 622

【亲测免费】 Vue-drag-resize-rotate:Vue 2.0 的多功能 UI 组件

Vue-drag-resize-rotate:Vue 2.0 的多功能 UI 组件 项目基础介绍与编程语言 Vue-drag-resize-rotate 是一个专为 Vue.js 2.0 设计的高级组件,它集成了拖拽、拉伸、旋转及自动对齐的能力,提供了强大的交互体验。此项目采用 Vue 为主要编程语言,并结合了少量的 JavaScript 和 SCSS 来完成其复杂的前端交互设计。 核心功能 拖...

gitblog_07789的博客 667

HTML5 Drag & Drop API优化IndexTTS2文件上传交互

通过HTML5 Drag & Drop API,IndexTTS2实现了更流畅的参考音频上传体验。结合事件拦截、视觉反馈与文件校验,用户可直接拖入音频完成上传,显著提升操作效率与产品专业感,尤其利于高频使用场景。

weixin_35886636的博客 780

Kitty Drag-and-Drop (OSC 72) 手工测试工具链:iTerm2 侧协议实现的手动验证指南

Kitty drag-and-drop 是 OSC 72 转义序列定义的一种终端内外双向拖放协议。本文以 iTerm2 仓库中 [tests/kitty-dnd](https://link.gitcode.com/i/4bae58a841ad726d9060c5db9451cdb3) 手工测试工具链为主干,完整讲解 `probe.py`、`drop_target.py`、`drag_source.

gitblog_00118的博客 425

Drag and Drop Grid (ExtJS - 2)

Sebagai lanjutan dari tutorial Extjs sebelumnya, sekarang saya mencoba untuk menulis untuk tutorial selanjutnya yakni bagaimana membuat Drag and Drop Grid dengan Extjs. Pastikan anda sudah memili...

ama7449的博客 245

Vue 拖放组件教程 - 基于 James2Doyle 的 vue-drag-and-drop

Vue 拖放组件教程 - 基于 James2Doyle 的 vue-drag-and-drop 本教程将引导您了解并使用 vue-drag-and-drop 这一开源项目。请注意,由于提供的链接并非真实的GitHub仓库链接,我将构建一个通用的指导框架,展示如何一般性地分析并解释一个假设的Vue拖放项目的结构、启动与配置文件。 1. 项目目录结构及介绍 通常,一个基于Vue且集成拖放功能的项目会有...

gitblog_01046的博客 394

android drag2有什么用,Android ViewDragHelper使用介绍

ViewDragHelper是support.v4下提供的用于处理拖拽滑动的辅助类,查看Android的DrawerLayout源码,可以发现,它内部就是使用了该辅助类来处理滑动事件的.public DrawerLayout(Context context, AttributeSet attrs, int defStyle) {super(context, attrs, defStyle);set...

weixin_31105189的博客 413

如何参与 GitKraken 汉化工程:gitkraken-chinese 新版适配与贡献完整指南

**gitkraken-chinese** 是一个为 Git GUI 工具 **GitKraken** 提供简体中文汉化补丁的开源项目。它的原理很直接:用翻译好的 [strings_12.3.1.json](https://link.gitcode.com/i/719a188972d898eb1101cc62da180e8b) 替换 GitKraken 安装目录下的英文语言文件 `strings.

gitblog_00674的博客 556
上一篇: 拖动
下一篇: 转Dom4j
studyflex
博客等级 码龄21年 1粉丝 23原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址