- 博客(3)
- 收藏
- 关注
原创 大脚叔偿谈:Lua音频秒数转时分秒,文件字节转GMKB
-- 大脚叔偿谈:Lua音频秒数转时分秒,文件字节转GMKB -- R.YtblS = table.sort R.YtblC = table.concat -- function R.Ytbl4JS( _tbl, _len ) if not _tbl then _tbl = {} end _tbl.push = function(_v) if not _len then _len = #_tbl end _len = 1 + _len _tbl[_len] = _v end _tb..
2021-07-13 13:58:54 256
原创 大脚叔偿谈:Linux C Socket网络Demo(TCP/IP)
话不多讲,直接复制,直接编译。 第一步,服务端: tcp_server.c #include <stdio.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> int main(int argc,char*argv[]){ int server_so
2021-06-29 13:07:48 226
原创 大脚叔偿谈:JS原生(ES5)通过prototype实现类继承,类似Java 的extends
先来看一下在 Java 中,类是如何继承的。虽然我们学的前端,了解一下别的语言未尝不可! // 父类Cls_base, 定义在 ../xhx/app/Cls_base.java 文件中 package xhx.app; import android.app.Activity; public class Cls_base extends Activity { protected void sayHello(String msg) {} } // 子类Cls_ch1, 定义在 ../xhx/
2021-02-10 11:53:35 164 2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人