郜小超 郜小超
4年前
前端vue中常用的插件
一.moment时间库1.安装npminstallmomentsave2.在main.js中引入importmomentfrom'moment';//导入模块moment.locale('zhcn');//设置语言或moment.lang('zhcn');Vue.prototype.$momentmoment;//赋值使用3.
Easter79 Easter79
4年前
vue 集成 vis
vis.js 网站https://visjs.org/(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fvisjs.org%2F)vs code下安装命令npminstallvisnetwork在vue 下引入 vis
徐小夕 徐小夕
5年前
js基本搜索算法实现与170万条数据下的性能测试
前言今天让我们来继续聊一聊js算法,通过接下来的讲解,我们可以了解到搜索算法的基本实现以及各种实现方法的性能,进而发现for循环,forEach,While
Wesley13 Wesley13
4年前
java并发神器 AQS(AbstractQueuedSynchronizer)
AbstractQueuedSynchronizerAQS的全称为(AbstractQueuedSynchronizer),这个类在java.util.concurrent.locks包AQS的核心思想是,如果被请求的共享资源空闲,则将当前请求资源的线程设置为有效的
Easter79 Easter79
4年前
swipe实现app滑动效果
t滑动事件时间,毫秒n次数coidngutf8'''获取当前窗口长宽'''defget_size(dr):xint(dr.get_window_size()'width')yint(dr.get_window_size()'height')returnx,y'''向上滑'''defswip
Stella981 Stella981
4年前
JavaScript基础知识
1:从一个界面跳转到其他界面window.location.href"b.html"2:判断变量是否为空typeofobj'undefined'||objnull||obj""3:html引用公用的css和js<scripttype"text/javascript"src
Stella981 Stella981
4年前
Debian修改时区和更新时间
查看当前系统时间dateR如果不是东八区,那么就接着要调整调整时区tzselect过程略,选择 Asia中国(China)北京(Beijing)拷贝配置生效sudocp/usr/share/zoneinfo/Asia/Shanghai/etc/localtime
Stella981 Stella981
4年前
B站 av和bv号互转 py和js版 bigint
原文链接: B站av和bv号互转py和js版bigint(https://my.oschina.net/ahaoboy/blog/4322681)参考https://www.zhihu.com/question/381784377/answer/1099438784(https://www.oschina.net/action/GoTo
Stella981 Stella981
4年前
Django之ajax(jquery)封装(包含 将 csrftoken 写入请求头方法)
由于支持问题,未使用es6语法\_ajax.js/发起请求@paramurl请求地址@paramdata请求数据{}json格式@paramtype请求类型get|post@paramsuccess请求成功回调方法(如果支持e
Stella981 Stella981
4年前
Android获得控件在屏幕中的绝对坐标
intlocationnewint2;view.getLocationInWindow(location);//获取在当前窗口内的绝对坐标view.getLocationOnScreen(location);//获取在整个屏幕内的绝对坐标location0x坐标,location1