摘要: 效果参见:https://www.cnblogs.com/jyroy/p/9427977.html 用法: 注意一定要加上后面的auto。为啥,我也不知道。 阅读全文
posted @ 2019-08-31 19:25 xunhanliu 阅读(740) 评论(2) 推荐(1)
摘要: 1、继承 2、多态 重载: js无重载,只能通过参数的个数进行判断 虚函数:关于方法是自动覆盖父类的相同方法,如果想要某个父类函数没法被调用,可在内部抛出个异常。 阅读全文
posted @ 2019-07-15 11:43 xunhanliu 阅读(1006) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-06-10 15:16 xunhanliu 阅读(275) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-06-10 03:24 xunhanliu 阅读(457) 评论(0) 推荐(0)
摘要: brush示例 以d3的一个brush进行叙述,示例见: https://bl.ocks.org/xunhanliu/6f0b46789842e9e19e6cfe9bd0b16806 应用情形: 当页面上有多个图时,况且每个图维护一份brush,互不影响。 js 类的基本结构: 参考自:https: 阅读全文
posted @ 2019-06-08 13:59 xunhanliu 阅读(3584) 评论(0) 推荐(0)
摘要: Python 3.5.6 1、js风格的回调测试 结果:符合预期 阅读全文
posted @ 2019-06-08 12:20 xunhanliu 阅读(172) 评论(0) 推荐(0)
摘要: 散点图(scatter plot): http://bl.ocks.org/weiglemc/6185069 雷达图(radar): http://xgfe.github.io/uploads/chenwubai/d3-basicCharts-radar/radar.html 饼图(pie): ht 阅读全文
posted @ 2019-06-06 16:58 xunhanliu 阅读(444) 评论(0) 推荐(0)
摘要: 位操作符 ASCII码与字符相互转换 字符转ascii码: ascii码转字符: 阅读全文
posted @ 2019-05-21 19:06 xunhanliu 阅读(525) 评论(0) 推荐(0)
摘要: 不蒜子前端简单实现: 当然,牛逼的不蒜子源码(比较绕,主要是考虑到代码健壮性的问题)是比这个轻量级多了。是使用js请求的方式,进行加载数据的。 网站统计主要看请求头Referer参数,一般是这个页面的链接。 跨域问题: 参见:https://blog.csdn.net/yesbuy201701/ar 阅读全文
posted @ 2019-05-06 00:58 xunhanliu 阅读(921) 评论(0) 推荐(0)
摘要: #基于python3 Matplotlib构建的3D图形: 使用pycharm的小伙伴把sciview给关掉: 因为sciview显示的是png图片。3d图形一般我们都需要拖拖拽拽的。 参见: https://blog.csdn.net/xguardian/article/details/81088 阅读全文
posted @ 2019-05-05 13:45 xunhanliu 阅读(436) 评论(0) 推荐(0)