![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
_破败
这个作者很懒,什么都没留下…
展开
-
使用canvas简单绘制心电图
绘制心电图,首先就要绘制表格先贴出html代码 :然后是绘制表格的函数,此表格包含大中小三种格子,分别对应三种函数:function drawSmallGrid(c_canvas){ var context = c_canvas.getContext("2d"); context.strokeStyle = "#f1dedf"; con原创 2017-03-14 11:46:00 · 9310 阅读 · 0 评论 -
js计算字符串的字节
方法一:str.replace(/[^\x00-\xff]/g, 'xx').length 方法二:String.prototype.byteLen = function(){ var len = 0, i = this.length; while(i--) {原创 2017-06-20 18:23:16 · 429 阅读 · 0 评论