比如拿到一张图片,包含图片中所有人物的坐标,这时,需要在Web网页上显示该图并选中坐标包含的目标人物 第一步: 先确定好坐标是(x1,y1,x2,y2) 还是(x1,y1,w,h)格式,如果是第二种,稍微多点计算,这里就以第二种方式为例 其实就是 先将坐标(x1,y1,W,H)转为两点式(x1,y1 ...
分类:
其他好文 时间:
2019-04-28 18:31:45
阅读次数:
108
/** * 手机号隐藏中间4位变成**** **/ export function phone(num) { num = "" + num; let tel1 =num.replace(num.substring(3,7), "****"); return tel1; } ...
分类:
移动开发 时间:
2019-04-25 14:30:47
阅读次数:
132
package是由一个或多个porcedure/function组成的。 定义: create or replace package 包名 is procedure/function定义部分;--以分号作为间隔 end; / create or replace package body 包名 is ...
分类:
其他好文 时间:
2019-04-24 23:41:11
阅读次数:
340
操作前: 操作后: 第一步: 把中英文的逗号和顿号置换为 '\n’ support_unit = support_unit.replace(/,|,|、/g, '\n') support_unit = support_unit.replace(/,|,|、/g, '\n') 第二步: //为了使\n ...
分类:
Web程序 时间:
2019-04-24 19:18:19
阅读次数:
166
<?php$character = "15.(2015秋?姜堰市期中)出生于公元前551年的孔子,出生年份记作﹣551年;李白出生于公元701年,对于他的出生年份,下面的记法不正确的是 (%brackets%)"; $reg = '/%[A-Za-z_]{1,}%/';$character = pr ...
分类:
其他好文 时间:
2019-04-24 10:41:17
阅读次数:
126
def Unicode2HexChar(Unicde_Char):#Unicode转16进制 Hex_Char = "" for i in range(0, len(Unicde_Char)): Hex_Char += (hex(ord(Unicde_Char[i])).replace('0x','... ...
分类:
编程语言 时间:
2019-04-23 12:44:00
阅读次数:
437
字符串的属性——length 字符串的方法 获取类 charAt——指定字符 获取类 charAt——指定字符 获取类 charAt——指定字符 charAt——指定字符 charCodeAt——指定字符的编码 charCodeAt——指定字符的编码 charCodeAt——指定字符的编码 char ...
分类:
其他好文 时间:
2019-04-21 12:46:48
阅读次数:
113
题目标签:HashMap 题目给了我们一个array 的 root, 让我们把sentence 里面得每一个word 去掉它得 successor。 把每一个root 存入hash set,然后遍历sentence 里面得每一个 word, 从index 1 开始遍历 如果有找到这个root,就把这 ...
分类:
其他好文 时间:
2019-04-21 10:06:37
阅读次数:
129
■ Simple initialization test.c ■ 编译 ■ 运行结果 ■ gst log EMEDITOR 去除1.log中不能显示的字符 ...
分类:
其他好文 时间:
2019-04-21 09:45:21
阅读次数:
126