//获取客户端向服务器端传送数据的协议名称 System.out.println("rotocol: " + request.getProtocol()); //返回的协议名称.默认是http System.out.println("Scheme: " + request.getScheme()); ...
分类:
其他好文 时间:
2019-02-21 11:00:18
阅读次数:
155
AutoLayout概念是苹果自iOS6开始引入的概念。 目前为止,实现自动布局技术选型方面也可以使用xib和storyboard。在开发过程中通常登录、注册等变动可能性较小的视图,我会采用xib开发,其他页面通常会采用Masonry布局。xib和手码各有优势,视情况而定。 关于NSLayoutAt ...
分类:
移动开发 时间:
2019-02-21 00:17:30
阅读次数:
222
本文将介绍利用浏览器特性在谷歌翻译页面获取译文, 免爬虫免安装环境, 高效无限翻译, 只需一个主流浏览器便可. 1. 打开google翻译页面 https://translate.google.cn, 然后在文本框内输入任意一个值(例如: 1), 避免出错. 2. 打开浏览器控制台 F12或者鼠标右 ...
分类:
其他好文 时间:
2019-02-16 13:41:37
阅读次数:
1180
Flutter有很多本地化的packages使用,我现在用的是 flutter_i18n 项目主页:https://pub.dartlang.org/packages/flutter_i18n 1、安装 在pubspec.yaml中添加 dependencies: flutter_i18n: Ctr ...
分类:
编程语言 时间:
2019-02-15 17:43:54
阅读次数:
468
好吧,这里直接编辑源码并不允许设置css和js……毕竟会有危险……那直接放代码吧 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initia ...
分类:
其他好文 时间:
2019-02-11 10:27:49
阅读次数:
182
Two images A and B are given, represented as binary, square matrices of the same size. (A binary matrix has only 0s and 1s as values.) We translate on ...
分类:
其他好文 时间:
2019-02-07 23:23:10
阅读次数:
214
Python运算符 算数运算符:+ - * / % // ** 比较运算符:== > < >= 大于等于 <= 小于等于 != 不等于 <> 不等于 逻辑运算符:not 、 and 、 or (布尔值:True 真 False: 假) in not in 判断某个东西是否在某个里面 # 注释符 多个 ...
分类:
编程语言 时间:
2019-02-05 23:52:39
阅读次数:
230
Homework31. Usually, there are many ways to translate a block of C code into assembly.It is always a good idea that you stick with your own way. Pleas ...
分类:
其他好文 时间:
2019-02-03 19:52:42
阅读次数:
160
using UnityEngine; using System.Collections; public class JoystickController : MonoBehaviour { private Joystick mJoystick; private float mSpeed=7.5F; ... ...
分类:
其他好文 时间:
2019-02-01 17:07:21
阅读次数:
186