上一页 1 2 3 4 5 6 7 8 9 10 ··· 35 下一页
摘要: -- -- classic, object model. -- -- Copyright (c) 2014, rxi -- -- This module is free software; you can redistribute it and/or modify it under -- the t 阅读全文
posted @ 2020-02-29 17:17 FromScratch 阅读(272) 评论(0) 推荐(0) 编辑
摘要: lua 注释 1. 单行注释 -- 功能等同于C++中的// 2. 多行注释 --[[ 注释的内容 ]] 功能等同于C++中的 /**/ 3. 多行注释 --[ [ 注释和内容 ] ], 也等同于C++中的/**/, 这个主要用于注释的内容里面有像arr[arr2[idx]] 这种文本, 如果使用- 阅读全文
posted @ 2020-02-29 11:25 FromScratch 阅读(277) 评论(0) 推荐(0) 编辑
摘要: worker_processes 1; error_log logs/error.log; events { worker_connections 1024; } http { server { listen 8080; location /api { content_by_lua_block { 阅读全文
posted @ 2020-02-28 22:58 FromScratch 阅读(383) 评论(0) 推荐(0) 编辑
摘要: local cjson = require "cjson" local json = cjson.encode({ foo = "bar", some_object = {}, some_array = cjson.empty_array }) ngx.say(json) local functio 阅读全文
posted @ 2020-02-28 22:40 FromScratch 阅读(2038) 评论(0) 推荐(0) 编辑
摘要: 写在前面 在web服务端开发中,字符的编解码几乎每天都要打交道。编解码一旦处理不当,就会出现令人头疼的乱码问题。 不少从事node服务端开发的同学,由于对字符编码码相关知识了解不足,遇到问题时,经常会一筹莫展,花大量的时间在排查、解决问题。 文本先对字符编解码的基础知识进行简单介绍,然后举例说明如何 阅读全文
posted @ 2020-02-28 15:18 FromScratch 阅读(415) 评论(0) 推荐(0) 编辑
摘要: content_by_lua_block { ngx.req.read_body() -- explicitly read the req body local data = ngx.req.get_body_data() if data then ngx.say("body data:") ngx 阅读全文
posted @ 2020-02-27 21:57 FromScratch 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 数据库访问--第三方 http { upstream backend { drizzle_server 192.168.4.119:3306 protocol=mysql dbname=igirl user=root password=123456; drizzle_keepalive max=10 阅读全文
posted @ 2020-02-27 21:55 FromScratch 阅读(382) 评论(0) 推荐(0) 编辑
摘要: NGINX 1)命令 Nginx -s stop Nginx -s reload--重新加哉配置文件 Nginx -V 显示源码安装配置时设定的参数2)模块化软件./configure 默认安装一些模块如果要添加非默认模块,需要./configure --with-xx模块名称 启用内置模块 --a 阅读全文
posted @ 2020-02-26 21:42 FromScratch 阅读(130) 评论(0) 推荐(0) 编辑
摘要: Stylus Import Disclaimer: In all places the @import is used with Stylus sheets, the @require could be used When using @import without the .css extensi 阅读全文
posted @ 2020-02-12 12:40 FromScratch 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 默认块级元素,默认宽度100%,高度自适用,默认背景色无色 默认块级元素的浮动子元素,形成蛇形流浮动 margin-left属性的使用,会按照蛇形移动 浮动元素会丢失块级别默认特性,比如宽度100%,可以显式设置100%,使其具备浮动块级特性 浮动子元素内容会自动冲开父高度 通过浮动子元素设置: m 阅读全文
posted @ 2020-02-04 21:13 FromScratch 阅读(129) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 35 下一页