首页 > 其他分享 >app直播源代码,jquery 拖拽复制

app直播源代码,jquery 拖拽复制

时间:2022-10-20 16:15:03浏览次数:54  
标签:jquery app source 复制 源代码 拖拽

app直播源代码,jquery 拖拽复制

 

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>jqeruy UI 拖拽练习</title>
    <style>
        table {
            border-collapse: collapse;
        }
            table td {
                empty-cells: show;
            }
    </style>
</head>
<body>
    <h2>
        拖动复制例子</h3>
            <table border="2">
                <tr height="40">
                    <td id="dragg1" width="110" bgcolor="peru">复制1</td>
                    <td id="dragg2" width="110" bgcolor="lightgreen">复制2</td>
                    <td id="dragg3" width="110" bgcolor="salmon">复制3</td>
                </tr>
            </table>
        <table>
            <tr>
                <td>
                    <table border="2">
                        <tr height="40">
                            <td width="150">a1</td>
                            <td width="150">a2</td>
                            <td width="150">a3</td>
                            <td width="150">a4</td>
                        </tr>
                        <tr height="40">
                            <td width="150" id="innerBox11"></td>
                            <td width="150" id="innerBox12"></td>
                            <td width="150" id="innerBox13"></td>
                            <td width="150" id="innerBox14"></td>
                        </tr>
                        <tr height="40">
                            <td width="150" id="innerBox21"></td>
                            <td width="150" id="innerBox21"></td>
                            <td width="150" id="innerBox21"></td>
                            <td width="150" id="innerBox21"></td>
                        </tr>
                        <tr height="40">
                            <td width="150" id="innerBox31"></td>
                            <td width="150" id="innerBox31"></td>
                            <td width="150" id="innerBox31"></td>
                            <td width="150" id="innerBox31"></td>
                        </tr>
                        <tr height="40">
                            <td width="150" id="innerBox41"></td>
                            <td width="150" id="innerBox41"></td>
                            <td width="150" id="innerBox41"></td>
                            <td width="150" id="innerBox41"></td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <!--导入jquery插件-->
        <script type="text/javascript" src="https://www.jq22.com/demo/jquery-tdfz20160803/jQuery1.11.3.min.js"></script>
        <!--导入jqueryUI插件-->
        <script type="text/javascript" src="https://www.jq22.com/demo/jquery-tdfz20160803/jquery-ui.js"></script>
        <script type="text/javascript" language="javascript">
   //在页面加载完之后加载jquery
   $().ready(function(e) {
       //拖拽复制体
       $('td[id^="dragg"]').draggable({
   helper:"clone",
   cursor: "move"
});
//释放后
   $('td[id^="innerBox"]').droppable({
drop:function(event,ui){
$(this).children().remove();
var source = ui.draggable.clone();
    $('<span style="color:red;" onclick = "javascript: $(this).parent().remove();" >   删除</span>', {
style:'display:none',
}).appendTo(source);
source.mouseenter(function () {
    $(this).find("span").show();
});
source.mouseleave(function () {
    $(this).find("span").hide();
});
$(this).append(source);
}
});
     });
        </script>
        <!--自写脚本-->
        
        </body>

以上就是app直播源代码,jquery 拖拽复制的全部代码,更多内容请关注之后的文章

 

标签:jquery,app,source,复制,源代码,拖拽
From: https://www.cnblogs.com/yunbaomengnan/p/16810201.html

相关文章

  • APP隐私合规检测方法
    测试目的:避免受欢迎的app被工信部点名下架给公司造成影响测试环境搭建:手机先安装xposed,也就是虚拟系统,务必使用我提供的xpose的apk,不然你可能出现安装的xpose虚拟apk......
  • .NET Core appsettings.json 取值
    本文主要介绍.NETCore中,通过appsettings.json配置文件获取数据库连接字符串。 1、在项目的根目录中创建appsettings.json文件{"MssqlConnectionString":"Server......
  • hybrid App原理介绍、环境搭建、打包(Cordova)及常见错误解析(windows环境)
    hybridApp原理介绍、环境搭建、打包(Cordova)及常见错误解析(windows环境):https://blog.csdn.net/u011350550/article/details/84637024?spm=1001.2101.3001.6650.7&utm_mediu......
  • B. Apple Tree 暴力 + 数学
    ​​http://codeforces.com/problemset/problem/348/B​​注意到如果顶点的数值确定了,那么它分下去的个数也就确定了,那么可以暴力枚举顶点的数值。顶点的数值是和LCM相隔的,L......
  • jQuery获取form表单元素值 总结
    语法解释:1.$("#select_id").change(function(){//code...});//为Select添加事件,当选择其中一项时触发2.varcheckText=$("#select_id").find("option:selected").te......
  • UI组件Kendo UI for jQuery R3 2022亮点——拥有全新的按钮组件
    KendoUIforjQuery提供了在短时间内构建现代Web应用程序所需的一切,从众多UI子控件中选择,并将它们组合起来,创建酷炫响应式的应用程序,同时能最大限度的加快开发时间。现代......
  • 手动实现call、apply、bind
    call,apply,bind作为改变this指向的法宝,那么它们是怎么做到的呢,接下来尝试边分析、边构造:我们先来构造一个mycall骨架,把功能添加到原型链让函数依附于某个对象,并且以对象......
  • 通过yaml或者appliaction.properties给类属性赋值
    方式A:通过springbootyaml配置文件方式方式B:通过application.properties配置,设置属性和值  参考:https://blog.csdn.net/qq_41286666/article/details/124251504......
  • call apply bind 的区别
    相同点:动态修改当前函数内部环境对象this指向;异同点:执行方式的不同callapply改变后立即执行,是同步代码bind是异步代码,改变后不会立即执行,会......
  • 关于报出这样的错误:org.apache.catalina.core.StandardWrapperValve.invoke 在路径为/
    从23:30开始报错检查,现在才弄好,发出来分享一下错误界面:首先,我们需要检查一下我们利用DBUtil.java文件中引用的db文件名称是否正确,(我就是因为没有注意到文件名称是否正确......