- 博客(0)
- 资源 (6)
- 收藏
- 关注
图片转zpl编码的方法,支持bmp、png、jpg等各种格式以及13种常用条码的zpl命令
实现思路: 1、获取图片的二值化字节数组 这一步是关键 2、将字节数组转为十六进制 3、压缩十六进制字符串 结尾为1、0或者与上一行相同的;相同的连续字符压缩 4、拼凑ZPL编码,宽度需要扩大,因为需要时8个点(1字节)的整数倍
条码名称如下:
"CODE 39" "PDF417" "Interleaved 2 of 5" " MaxiCode" "EAN 8""Code11"
"UPC-E" "Micro PDF417" "Code93" "Code49" "Code 128" "CoderBar" "EAN 13"
"Industrial 2 of 5"
2019-08-09
git常用命令总结
git常用命令总结
1 从远程服务克隆项目(git clone git@172 16 20 52:koodoo)
2 查看本地分支
3 查看远程分支
4 切换分支
5 从远程分支develop更新代码
6 合并develop分支到当前分支
7 上传本地代码到远程服务
8 切换服务ip地址
2013-11-08
jquery1.7_20111204.chm
jquery1.7 api文档,
核心jQuery 核心函数
jQuery([sel,[context]])
jQuery(html,[ownerDoc])
jQuery(callback)
jQuery 对象访问
each(callback)
size()
length
selector
context
get([index])
index([selector|element])
数据缓存
data([key],[value])
removeData([name|list])1.7*
$.data(element,[key],[value])
队列控制
queue(element,[queueName])
dequeue([queueName])
clearQueue([queueName])
插件机制
jQuery.fn.extend(object)
jQuery.extend(object)
多库共存
jQuery.noConflict([ex])
属性
属性
attr(name|pro|key,val|fn)
removeAttr(name)
prop(name|pro|key,val|fn)1.6+
removeProp(name)1.6+
CSS 类
addClass(class|fn)
removeClass([class|fn])
toggleClass(class|fn[,sw])
HTML代码/文本/值
html([val|fn])
text([val|fn])
text([val|fn|arr])
CSS
CSS
css(name|pro|[,val|fn])
位置
offset([coordinates])
position()
scrollTop([val])
scrollLeft([val])
尺寸
heigh([val|fn])
width([val|fn])
innerHeight()
innerWidth()
outerHeight([soptions])
outerWidth([options])
选择器
基本
#id
element
.class
*
selector1,selector2,selectorN
层级
ancestor descendant
parent > child
prev + next
prev ~ siblings
基本
:first
:last
:not(selector)
:even
:odd
:eq(index)
:gt(index)
:lt(index)
:header
:animated
:focus1.6+
内容
:contains(text)
:empty
:has(selector)
:parent
可见性
:hidden
:visible
属性
[attribute]
[attribute=value]
[attribute!=value]
[attribute^=value]
[attribute$=value]
[attribute*=value]
[attrSel1][attrSel2][attrSelN]
子元素
:nth-child
:first-child
:last-child
:only-child
表单
:input
:text
:password
:radio
:checkbox
:submit
:image
:reset
:button
:file
:hidden
表单对象属性
:enabled
:disabled
:checked
:selected
文档处理
内部插入
append(content|fn)
appendTo(content)
prepend(content|fn)
prependTo(content)
外部插入
after(content|fn)
before(content|fn)
insertAfter(content)
insertBefore(content)
包裹
wrap(html|ele|fn)
unwrap()
wrapall(html|ele)
wrapInner(html|ele|fn)
替换
replaceWith(content|fn)
replaceAll(selector)
删除
empty()
remove([expr])
detach([expr])
复制
clone([Even[,deepEven]])
筛选
过滤
eq(index|-index)
first()
last()
hasClass(class)
filter(expr|obj|ele|fn)
is(expr|obj|ele|fn)1.6*
map(callback)
has(expr|ele)
not(expr|ele|fn)
slice(start,[end])
查找
children([expr])
closest(expr,[con]|obj|ele)1.6*
find(expr|obj|ele)
next([expr])
nextall([expr])
nextUntil([exp|ele][,fil])1.6*
offsetParent()
parent([expr])
parents([expr])
parentsUntil([exp|ele][,fil])1.6*
prev([expr])
prevall([expr])
prevUntil([exp|ele][,fil])1.6*
siblings([expr])
串联
add(expr|ele|html|obj[,con])
andSelf()
contents()
end()
、、、、、、
2012-10-18
23种java设计模式.pdf
23种java设计模式让你的思维更活跃。
1、创建模式:Factory(工厂模式)、Singleton(单态)、Builder(建
造者模式)、Prototype(原型模式)、工厂方法模式。
2、结构模式: Flyweight(共享模式)、 Bridge(桥模式)、 Decorator(装
饰模式)、Composite(组合模式)、Adapter(适配器模式)、Proxy(代理
模式)、Facade (外观模式)。
3、行为模式:Iterator(迭代模式)、Template(模板模式)、Chain
of Responsibility(责任链模式)、Memento(纪念品模式)、
Mediator(中介模式)、Interpreter(解释器模式)、Strategy(策
略模式)、State 、Observer(观察者模式)、Visitor(访问模式)、
Command(命令模式)。
2012-09-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人