欢迎访问我的独立博客
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 67 下一页
摘要: Lua一般用于嵌入式应用,现在越来越多应用于游戏当中,魔兽世界,愤怒的小鸟都有用到。 Lua极易嵌入到其他程序,可当做一种配置语言。 还有很多需要性能的地方,比如:游戏脚本,nginx,wireshark的脚本 可以直接使用 C 代码写的函数。 比如corona 移动应用开发平台,跟PhonePap 阅读全文
posted @ 2017-11-23 14:37 github.com/starRTC 阅读(4028) 评论(0) 推荐(0) 编辑
摘要: import json f = open("index.html", "wb") json.dump(response.data, f) f.close() dumps只完成了序列化为str, dump必须传文件描述符,将序列化的str保存到文件中 阅读全文
posted @ 2017-11-23 13:31 github.com/starRTC 阅读(4803) 评论(0) 推荐(0) 编辑
摘要: avcodec_decode_video2. returns -1094995529. #define AVERROR_INVALIDDATA FFERRTAG( 'I','N','D','A') The -1094995529 becomes -0x41444E49 and when you lo 阅读全文
posted @ 2017-11-22 11:10 github.com/starRTC 阅读(365) 评论(0) 推荐(0) 编辑
摘要: 腾讯的artTemplate 1,编写模板 (采用script标签并带有属性id和type="text/html") <script id="test" type="text/html"> {{if isAdmin}} <h1>{{author}}</h1> <ul> {{each list as 阅读全文
posted @ 2017-11-17 20:22 github.com/starRTC 阅读(463) 评论(0) 推荐(0) 编辑
摘要: nginx 413 Request Entity Too Large Php无法上传文件查看php脚本运行用户,写个php脚本<?php echo shell_exec("id -a"); http.conf中User apache Group apache 修改网站目录用户为apache即可。 P 阅读全文
posted @ 2017-11-17 09:14 github.com/starRTC 阅读(1523) 评论(0) 推荐(0) 编辑
摘要: 1 我想把updatedb命令(用于重新建立整盘索引的命令)放在后台运行。 注释:在所要执行的命令后面加上空格,再加上&符号即可实现后台执行。所返回的[1]表示这是第一个你放到后台的任务。23336是这个任务的进程号。 2 我执行updatedb时忘了加&了,这下我怎么办?有办法: 按键盘上的ctr 阅读全文
posted @ 2017-11-15 09:20 github.com/starRTC 阅读(218) 评论(0) 推荐(0) 编辑
摘要: select * from table limit 2,1; //含义是跳过2条取1条数据,即读取第3条数据 select * from table limit 2 offset 1; //这种更容易理解一些 //含义是从第1条(不包括)数据开始取出2条数据,limit后面跟的是2条数据,offse 阅读全文
posted @ 2017-11-14 15:58 github.com/starRTC 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 先引入jquery,再引入:jquery.cookie.js 添加一个"会话cookie" $.cookie('the_cookie', 'the_value'); 这里没有指明 cookie有效时间,所创建的cookie有效期默认到用户关闭浏览器为止,所以被称为 “会话cookie(session 阅读全文
posted @ 2017-11-14 13:46 github.com/starRTC 阅读(236) 评论(0) 推荐(0) 编辑
摘要: $.ajax() //$表示是jQuery cache: 要求为Boolean类型的参数,默认为true(当dataType为script时,默认为false),设置为false将不会从浏览器缓存中加载请求信息。 type 默认值: "GET" 请求方式 ("POST" 或 "GET"), data 阅读全文
posted @ 2017-11-14 12:22 github.com/starRTC 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 基础语法是:$(selector).action() 美元符号定义 jQuery选择符(selector)“查询”和“查找” HTML 元素jQuery 的 action() 执行对元素的操作 如 $("p").hide() - 隐藏所有段落 $(".test").hide() - 隐藏所有 cla 阅读全文
posted @ 2017-11-14 10:37 github.com/starRTC 阅读(242) 评论(0) 推荐(0) 编辑
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 67 下一页