jQuery的出现,大大简化了对dom的操作,但是如果不是仔细阅读api和进行操作,就不知道其中最大的优点和使用方式。就拿 $().click()和$(document).on(‘click’,‘要选择的元素’,function(){})来说,都是点击事件的操作,但是也有不同的地方。 1. $(选择 ...
分类:
其他好文 时间:
2020-06-20 21:47:42
阅读次数:
84
vue-cli中如何引入bootstrap first step:下载jq cd 到项目目录下,运行npm install jquery --save-dev(npm换成cnpm更好,国内环境下使用cnpm下载速度更快)。 图 1 second step:修改build目录下的webpack.bas ...
分类:
其他好文 时间:
2020-06-20 18:31:26
阅读次数:
45
1、jQuery中的ajaxget方法:$.ajax({ url:"v4/api/film/now-playing?t=1539401039415&page=1&count=5", type:"GET", success:(result)=>{ return result } })post方法:$.... ...
分类:
移动开发 时间:
2020-06-20 17:09:46
阅读次数:
66
一、安装jQuery Bootstrap需要依赖jQuery,所以引用Bootstrap之前要先引用jQuery,使用下面的命令引用jQuery: npm install jquery --save 二、引入Bootstrap 1、使用命令安装 npm install bootstrap --sav ...
分类:
其他好文 时间:
2020-06-20 16:38:05
阅读次数:
50
1、有用的网址 表盘 echarts https://echarts.apache.org/examples/zh/editor.html?c=gauge 搜索盘 http://www.pansoso.com/ Jquery评论插件 http://www.jq22.com/yanshi16802 在 ...
分类:
其他好文 时间:
2020-06-20 16:11:41
阅读次数:
59
// change事件 $('input[type=radio][name=type]').change(function () { if (this.value == '1') { $('.jump-item').show(); } else if (this.value == '2' || th ...
分类:
Web程序 时间:
2020-06-20 16:10:28
阅读次数:
177
html: <div class="hot-purchase"> <div class="title">热门团购</div> <dl class="item on"> <dt> <a href="" class="text-area">[text]</a> <a href="" class="tex ...
分类:
Web程序 时间:
2020-06-20 14:15:09
阅读次数:
72
下面是一个简单的解决方案,如果不想定义一个操作过滤器 使用jQuery的客户端代码: $.ajax("http://www.myserver.com/Home/JsonpCall", { dataType: "jsonp" }).done(function (result) {}); MVC控制器的 ...
分类:
Web程序 时间:
2020-06-20 10:37:08
阅读次数:
96
zipline 程序的整体运行逻辑: 一个回测框架至少应该包括回测环境的配置,回测的事件触发,回测的事件处理,回测循环这样的几个模块 使用conda安装zipline $ conda create -n env_zipline python=3.5 $ conda activate env_zipl ...
分类:
其他好文 时间:
2020-06-20 10:26:42
阅读次数:
56
jQuery总结 jQuery引入 下载链接:jQuery官网 (https://jquery.com/),首先需要下载这个jQuery的文件,然后在HTML文件中引入这个文件,就可以使用这个文件中帮我们提供的jquery的接口了 中文文档:jQuery AP中文文档 (http://jquery. ...
分类:
Web程序 时间:
2020-06-20 01:15:24
阅读次数:
59