随笔分类 -  javascript

摘要:var f = new Function("rate", "return '★★★★★☆☆☆☆☆'.slice(5 - rate, 10 - rate)") 整数交换防止溢出 a=2147483646;b=214748365; a^=b b^=a a^=b 阅读全文
posted @ 2020-10-15 10:39 TY520 阅读(23969) 评论(0) 推荐(0) 编辑
摘要:例子一 效果 鼠标移动上去放大 <div> <img class="enlarge" width="80" height="80" src="https://img14.360buyimg.com/n0/jfs/t1/134958/22/4022/196092/5f05e5dbE543b1f3d/c 阅读全文
posted @ 2020-07-09 12:32 TY520 阅读(23825) 评论(0) 推荐(0) 编辑
摘要:<html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>A</title> <style> body { mar 阅读全文
posted @ 2020-06-19 19:23 TY520 阅读(24666) 评论(0) 推荐(0) 编辑
摘要:formatNumber = n => { n = n.toString(); return n[1] ? n : '0' + n }; // 时间格式化 formatTime = date => { const year = date.getFullYear(); const month = da 阅读全文
posted @ 2020-06-08 10:14 TY520 阅读(29692) 评论(0) 推荐(0) 编辑
摘要:用vue.js实现的期货,股票的实时k线 项目地址:https://github.com/zhengquantao/vue-kline vue-kline 效果图 Build Setup 本项目基于Vue的k线图.某K线插件做了一些封装和二次开发,使其更加便于使用和修改,方便后来的开发者. 修改主要 阅读全文
posted @ 2019-09-19 10:01 TY520 阅读(32031) 评论(2) 推荐(0) 编辑

点击右上角即可分享
微信分享提示