attrib显示文件属性,有显示文件夹属性的命令吗 | 不显示子文件夹和文件

attrib显示文件属性,有显示文件夹属性的命令吗 | 不显示子文件夹和文件

本文目录

  • attrib显示文件属性,有显示文件夹属性的命令吗(不显示子文件夹和文件)
  • 在DOS命令中Attrib 的使用方法和详解
  • 电脑里常用的的英语有那些(汉语意思)
  • 如何防止代码被反编译
  • attrib怎么用
  • attrib -s -h -r /s /d 这是什么命令大神们帮帮忙
  • 电脑常用英文
  • java的JTextArea中怎么改变字体颜色
  • 关于计算机的一般单词
  • setattribute和setattributenode的区别

attrib显示文件属性,有显示文件夹属性的命令吗(不显示子文件夹和文件)


文件夹和文件都能用attrib显示属性的,不显示子文件夹的话,使用方法一样。

如果是显示一个文件夹内的所有文件夹的属性,可以使用for循环,如下:

for /f “delims=“ %i in (’dir /ad/b’) do attrib “%i“

在DOS命令中Attrib 的使用方法和详解


attrib指令用于修改文件的属性.文件的常见属性有:只读.存档.隐藏和系统.
只读属性是指文件只可以做读的操作.不能对文件进行写的操作.就是文件的保护.
存档属性是用来标记文件改动的.即在上一次备份后文件有所改动.一些备份软件在备份的时候会只去备份带有存档属性的文件.
隐藏属性顾名思义即为隐藏文件.在通常情况下.在资源管理器中不显示带有隐藏属性的文件.
系统属性是指标注文件为系统文件.是系统需要调用的文件.
attrib指令的格式和常用参数
ATTRIB [+R | -R] [+A | -A ] [+S | -S] [+H | -H] [[drive:] [path] filename] [/S [/D]]
+ 设置属性。
- 清除属性。
R 只读文件属性。
A 存档文件属性。
S 系统文件属性。
H 隐藏文件属性。
[drive:][path][filename]
指定要处理的文件属性。
/S 处理当前文件夹及其子文件夹中的匹配文件。
/D 也处理文件夹。
attrib的用途不是很广泛.不过有的时候可以利用它来做一些方便的文件处理.比如U盘中感染了病毒.会在U盘的驱动器里建立多个隐藏的文件.其中会有一个名为autorun.inf的文件.这个文件会为U盘添加一个自动运行的菜单.如果把默认打开操作改成关联病毒程序.那么在你双击U盘的时候.就会感染U盘所带的病毒.通常情况下无法看到这些文件就没办法删除.可以用下面的步骤来清除.
以下假设我的U盘驱动器的盘符是L:.“/*“与“*/“之间的内容为注释.在运行中敲入CMD确定便可以快速打开系统的命令提示符.运行的快捷键为“WIN“+“R“.
C:\Documents and Settings\Administrator》cd L: /*进入L盘目录*/
L:\》dir/a /*这个指令是查看当前目录全部的文件.包括有隐藏属性的.可以用来查看是否有autorun.inf等文件.*/
L:\》attrib autorun.inf -a -s -r -h /*去掉autorun.inf的四种属性*/
L:\》del autorun.inf /*删除autorun.inf*/
然后拔掉U盘.再一次连接的时候U盘的自动运行菜单就没有了.当然.其他的病毒程序也可以如此操作.如果把autorun.inf换成*.*就可以一次对当前目录下全部文件进行操作了.如:
L:\》attrib *.* -a -s -r -h

电脑里常用的的英语有那些(汉语意思)


第一部分、计算机算法常用术语中英对照
Data Structures 基本数据结构
Dictionaries 字典
Priority Queues 堆
Graph Data Structures 图
Set Data Structures 集合
Kd-Trees 线段树
Numerical Problems 数值问题
Solving Linear Equations 线性方程组
Bandwidth Reduction 带宽压缩
Matrix Multiplication 矩阵乘法
Determinants and Permanents 行列式
Constrained and Unconstrained Optimization 最值问题
Linear Programming 线性规划
Random Number Generation 随机数生成
Factoring and Primality Testing 因子分解/质数判定
Arbitrary Precision Arithmetic 高精度计算
Knapsack Problem 背包问题
Discrete Fourier Transform 离散Fourier变换
Combinatorial Problems 组合问题
Sorting 排序
Searching 查找
Median and Selection 中位数
Generating Permutations 排列生成
Generating Subsets 子集生成
Generating Partitions 划分生成
Generating Graphs 图的生成
Calendrical Calculations 日期
Job Scheduling 工程安排
Satisfiability 可满足性
Graph Problems -- polynomial 图论-多项式算法
Connected Components 连通分支
Topological Sorting 拓扑排序
Minimum Spanning Tree 最小生成树
Shortest Path 最短路径
Transitive Closure and Reduction 传递闭包
Matching 匹配
Eulerian Cycle / Chinese Postman Euler回路/中国邮路
Edge and Vertex Connectivity 割边/割点
Network Flow 网络
Drawing Graphs Nicely 图的描绘
Drawing Trees 树的描绘
Planarity Detection and Embedding 平面性检测和嵌入
Graph Problems -- hard 图论-NP问题
Clique 最大团
Independent Set 独立
Vertex Cover 点覆盖
Traveling Salesman Problem 旅行商问题
Hamiltonian Cycle Hamilton回路
Graph Partition 图的划分
Vertex Coloring 点染色
Edge Coloring 边染色
Graph Isomorphism 同构
Steiner Tree Steiner树
Feedback Edge/Vertex Set 最大无环子图
Computational Geometry 计算几何
Convex Hull 凸包
Triangulation 三角剖分
Voronoi Diagrams Voronoi图
Nearest Neighbor Search 最近点对查询
Range Search 范围查询
Point Location 位置查询
Intersection Detection 碰撞测试
Bin Packing 装箱问题
Medial-Axis Transformation 中轴变换
Polygon Partitioning 多边形分割
Simplifying Polygons 多边形化简
Shape Similarity 相似多边形
Motion Planning 运动规划
Maintaining Line Arrangements 平面分割
Minkowski Sum Minkowski和
Set and String Problems 集合与串的问题
Set Cover 集合覆盖
Set Packing 集合配置
String Matching 模式匹配
Approximate String Matching 模糊匹配
Text Compression 压缩
Cryptography 密码
Finite State Machine Minimization 有穷自动机简化
Longest Common Substring 最长公共子串
Shortest Common Superstring 最短公共父串
DP——Dynamic Programming——动态规划
recursion —— 递归
第二部分、编程词汇
A2A integration A2A整合
abstract 抽象的
abstract base class (ABC)抽象基类
abstract class 抽象类
abstraction 抽象、抽象物、抽象性
access 存取、访问
access level访问级别
access function 访问函数
account 账户
action 动作
activate 激活
active 活动的
actual parameter 实参
adapter 适配器
add-in 插件
address 地址
address space 地址空间
address-of operator 取地址操作符
ADL (argument-dependent lookup)
ADO(ActiveX Data Object)ActiveX数据对象
advanced 高级的
aggregation 聚合、聚集
algorithm 算法
alias 别名
align 排列、对齐
allocate 分配、配置
allocator分配器、配置器
angle bracket 尖括号
annotation 注解、评注
API (Application Programming Interface) 应用(程序)编程接口
app domain (application domain)应用域
application 应用、应用程序
application framework 应用程序框架
appearance 外观
append 附加
architecture 架构、体系结构
archive file 归档文件、存档文件
argument引数(传给函式的值)。参见parameter
array 数组
arrow operator 箭头操作符
ASP(Active Server Page)活动服务器页面
ASP.NET worker process ASP.NET工作进程
assembly 装配件、配件
assembly language 汇编语言
assembly manifest 装配件清单
assert(ion) 断言
assign 赋值
assignment 赋值、分配
assignment operator 赋值操作符
associated 相关的、相关联的
associative container 关联式容器(对应sequential container)
asynchronous 异步的
atomic 原子的
atomic operation 原子操作
attribute 特性、属性
authentication service 验证服务
authorization 授权
audio 音频
A.I. 人工智能
B2B integration B2B整合、B2B集成(business-to-business integration)
background 背景、后台(进程)
backward compatible 向后兼容、向下兼容
backup 备份
backup device备份设备
backup file 备份文件
bandwidth 带宽
base class 基类
base type 基类型
batch 批处理
BCL (base class library)基类库
binary 二进制
binary search 二分查找
binary tree 二叉树
binary function 双参函数
binary large object二进制大对象
binary operator 二元操作符
binding 绑定
bit 位
bitmap 位图
bitwise 按位...
bitwise copy 为单元进行复制;位元逐一复制,按位拷
bitwise operation 按位运算
block 块、区块、语句块
bookkeeping 簿记
boolean 布林值(真假值,true或false)
border 边框
bounds checking 边界检查
boxing 装箱、装箱转换
brace (curly brace) 大括号、花括号
bracket (square brakcet) 中括号、方括号
breakpoint 断点
browser applications 浏览器应用(程序)
browser-accessible application 可经由浏览器访问的应用程序
build 编连(专指编译和连接
built-in 内建、内置
bus 总线
business 业务、商务(看场合)
business Logic 业务逻辑
business rules 业务规则
buttons 按钮
bug 臭虫
by/through 通过
byte 位元组(由8 bits组成)
cache 高速缓存
calendar 日历
call 调用
callback 回调
call-level interface (CLI)调用级接口(CLI)
call operator 调用操作符
candidate key 候选键 (for database)
cascading delete 级联删除 (for database)
cascading update 级联更新 (for database)
casting 转型、造型转换
catalog 目录
chain 链(function calls)
character 字符
character format 字符格式
character set 字符集
CHECK constraints CHECK约束 (for database)
checkpoint 检查点 (for database)
check box 复选框
check button 复选按钮
child class 子类
CIL (common intermediate language)通用中间语言、通用中介语言
class 类
class declaration 类声明
class definition 类定义
class derivation list 类继承列表
class factory 类厂
class hierarchy 类层次结构
class library 类库
class loader 类装载器
class template 类模板
class template partial specializations 类模板部分特化
class template specializations 类模板特化
classification 分类
clause 子句
client application 客户端应用程序
client cursor 客户端游标 (for database)
code page 代码页
cleanup 清理、清除
CLI (Common Language Infrastructure) 通用语言基础设施
client 客户、客户端
client area 客户区
client-server 客户机/服务器、客户端/服务器
clipboard 剪贴板
clone 克隆
CLS (common language specification) 通用语言规范
code access security 代码访问安全
COFF (Common Object File Format) 通用对象文件格式
collection 集合
COM (Component Object Model) 组件对象模型
combo box 组合框
command line 命令行
comment 注释
commit 提交 (for database)
communication 通讯
compatible 兼容
compile time 编译期、编译时
compiler 编译器
component组件
composite index 复合索引、组合索引 (for database)
composite key 复合键、组合键 (for database)
composition 复合、组合
concept 概念
concrete具体的
concrete class 具体类
concurrency 并发、并发机制
constraint 约束 (for database)
configuration 配置、组态
connection 连接 (for database)
connection pooling 连接池
console 控制
constant 常量
construct 构件、成分、概念、构造(for language)
constructor (ctor) 构造函数、构造器
container 容器
containment包容
context 环境、上下文
control 控件
cookie (不译)
copy 拷贝
CORBA 通用对象请求中介架构(Common Object Request Broker Architecture)
cover 覆盖、涵盖
create/creation 创建、生成
crosstab query 交叉表查询 (for database)
CRTP (curiously recurring template pattern)
CTS (common type system)通用类型系统
cube 多维数据集 (for database)
cursor 光标
cursor 游标 (for database)
custom 定制、自定义
data 数据
data connection 数据连接 (for database)
Data Control Language (DCL) 数据控制语言(DCL) (for database)
Data Definition Language (DDL) 数据定义语言(DDL) (for database)
data dictionary 数据字典 (for database)
data dictionary view 数据字典视图 (for database)
data file 数据文件 (for database)
data integrity 数据完整性 (for database)
data manipulation language (DML)数据操作语言(DML) (for database)
data mart 数据集市 (for database)
data pump 数据抽取 (for database)
data scrubbing 数据清理 (for database)
data source 数据源 (for database)
Data source name (DSN) 数据源名称(DSN) (for database)
data warehouse 数据仓库 (for database)
dataset 数据集 (for database)
database 数据库 (for database)
database catalog 数据库目录 (for database)
database diagram 数据关系图 (for database)
database file 数据库文件 (for database)
database object 数据库对象 (for database)
database owner 数据库所有者 (for database)
database project 数据库工程 (for database)
database role 数据库角色 (for database)
database schema 数据库模式、数据库架构 (for database)
database script 数据库脚本 (for database)
data-bound 数据绑定 (for database)
data-aware control数据感知控件 (for database)
data member 数据成员、成员变量
dataset 数据集 (for database)
data source 数据源 (for database)
data structure数据结构
data table 数据表 (for database)
datagram 数据报文
DBMS (database management system)数据库管理系统 (for database)
DCOM (distributed COM)分布式COM
dead lock 死锁 (for database)
deallocate 归还
debug 调试
debugger 调试器
decay 退化
decision support 决策支持
declaration 声明
declarative referential integrity (DRI)声明引用完整性(DRI) (for database)
deduction 推导
DEFAULT constraint默认约束 (for database)
default database 默认数据库 (for database)
default instance 默认实例 (for database)
default result set 默认结果集 (for database)
default 缺省、默认值
defer 推迟
definition 定义
delegate 委托
delegation 委托
dependent name
deploy 部署
dereference 解引用
dereference operator (提领)运算子
derived class 派生类
design by contract 契约式设计
design pattern 设计模式
destroy 销毁
destructor(dtor)析构函数、析构器
device 设备
DHTML (dynamic HyperText Markup Language)动态超文本标记语言
dialog 对话框
digest 摘要
digital 数字的
DIME (Direct Internet Message Encapsulation)直接Internet消息封装
directive (编译)指示符
directory 目录
dirty pages脏页 (for database)
dirty read 脏读 (for database)
disassembler 反汇编器
DISCO (Discovery of Web Services)Web Services的查找
disk 盘
dispatch 调度、分派、派发(我喜欢“调度”)
DISPID (Dispatch Identifier)分派标识符
distributed computing 分布式计算
distributed query 分布式查询 (for database)
DNA (Distributed interNet Application) 分布式网间应用程序
document 文档
DOM (Document Object Model)文档对象模型
dot operator (圆)点操作符
driver 驱动(程序)
DTD (document type definition) 文档类型定义
double-byte character set (DBCS)双字节字符集(DBCS)
dump 转储
dump file 转储文件
dynamic cursor 动态游标 (for database)
dynamic filter 动态筛选 (for database)
dynamic locking 动态锁定 (for database)
dynamic recovery 动态恢复 (for database)
dynamic snapshot 动态快照 (for database)
dynamic SQL statements 动态SQL语句 (for database)
dynamic assembly 动态装配件、动态配件
dynamic binding 动态绑定
EAI (enterprise application integration)企业应用程序集成(整合)
EBCO (empty base class optimization) 空基类优化(机制)
e-business 电子商务
EDI (Dlectronic Data Interchange)电子数据交换
efficiency 效率
efficient 高效
end-to-end authentication 端对端身份验证
end user 最终用户
engine 引擎
entity 实体
encapsulation 封装
enclosing class 外围类别(与巢状类别 nested class有关)
enum (enumeration) 枚举
enumerators 枚举成员、枚举器
equal 相等
equality 相等性
equality operator 等号操作符
error log 错误日志 (for database)
escape code 转义码
escape character 转义符、转义字符
exclusive lock 排它锁 (for database)
explicit transaction 显式事务 (for database)
evaluate 评估
event 事件
event driven 事件驱动的
event handler 事件处理器
evidence 证据
exception 异常
exception declaration 异常声明
exception handling 异常处理、异常处理机制
exception-safe 异常安全的
exception specification 异常规范
exit 退出
explicit 显式
explicit specialization 显式特化
export 导出
expression 表达式
facility 设施、设备
fat client 胖客户端
feature 特性、特征
fetch 提取
field 字段(java)
field 字段 (for database)
field length 字段长度 (for database)
file 文件
filter 筛选 (for database)
finalization 终结
firewall 防火墙
finalizer 终结器
firmware 固件
flag 标记
flash memory 闪存
flush 刷新
font 字体
foreign key (FK) 外键(FK) (for database)
form 窗体
formal parameter 形参
forward declaration 前置声明
forward-only 只向前的
forward-only cursor 只向前游标 (for database)
fragmentation 碎片 (for database)
framework 框架
full specialization 完全特化
function 函数
function call operator (即operator ()) 函数调用操作符
function object 函数对象
function overloaded resolution函数重载决议
functionality 功能
function template函数模板
functor 仿函数
GAC (global assembly cache) 全局装配件缓存、全局配件缓存
GC (Garbage collection) 垃圾回收(机制)、垃圾收集(机制)
game 游戏
generate 生成
generic 泛化的、一般化的、通用的
generic algorithm通用算法
genericity 泛型
getter (相对于 setter)取值函数
global 全局的
global object 全局对象
global scope resolution operator 全局范围解析操作符
grant 授权 (for database)
granularity 粒度
group 组、群
group box 分组框
GUI 图形界面
GUID (Globally Unique Identifier) 全球唯一标识符
hand shaking 握手
handle 句柄
handler 处理器
hard-coded 硬编码的
hard-copy 截屏图
hard disk 硬盘
hardware 硬件
hash table 散列表、哈希表
header file头文件
heap 堆
help file 帮助文件
hierarchy 层次结构、继承体系
hierarchical data 阶层式数据、层次式数据
hook 钩子
Host (application)宿主(应用程序)
hot key 热键
hyperlink 超链接
HTML (HyperText Markup Language) 超文本标记语言
HTTP pipeline HTTP管道
HTTP (HyperText Transfer Protocol) 超文本传输协议
icon 图标
IDE (Integrated Development Environment)集成开发环境
IDL (Interface Definition Language) 接口定义语言
identifier 标识符
idle time 空闲时间
if and only if当且仅当
IL (Intermediate Language) 中间语言、中介语言
image 图象
IME 输入
immediate base 直接基类
immediate derived 直接派生类
immediate updating 即时更新 (for database)
implicit transaction隐式事务 (for database)
incremental update 增量更新 (for database)
index 索引 (for database)
implement 实现
implementation 实现、实现品
implicit 隐式
import 导入
increment operator 增加操作符
infinite loop 无限循环
infinite recursive 无限递归
information 信息
infrastructure 基础设施
inheritance 继承、继承机制
inline 内联
inline expansion 内联展开
initialization 初始化
initialization list 初始化列表、初始值列表
initialize 初始化
inner join 内联接 (for database)
in-place active 现场激活
instance 实例
instantiated 具现化、实体化(常应用于template)
instantiation 具现体、具现化实体(常应用于template)
integrate 集成、整合
integrity 完整性、一致性
integrity constraint完整性约束 (for database)
interprocess communication (IPC)进程间通讯(IPC)
interacts 交互
interface 接口
for GUI 界面
interoperability 互操作性、互操作能力
interpreter 解释器
introspection 自省
invariants 不变性
invoke 调用
isolation level 隔离级别 (for database)
iterate 迭代
iterative 反复的、迭代的
iterator 迭代器
iteration 迭代(回圈每次轮回称为一个iteration)
item 项、条款、项目
JIT compilation JIT编译 即时编译
key 键 (for database)
key column 键列 (for database)
laser 激光
late binding 迟绑定
left outer join 左向外联接 (for database)
level 阶、层例
high level 高阶、高层
library 库
lifetime 生命期、寿命
link 连接、链接
linkage 连接、链接
linker 连接器、链接器
literal constant 字面常数
list 列表、表、链表
list box 列表框
livelock 活锁 (for database)
load 装载、加载
load balancing 负载平衡
loader 装载器、载入器
local 局部的
local object 局部对象
lock 锁
log 日志
login 登录
login security mode登录安全模式 (for database)
lookup table 查找表 (for database)
loop 循环
loose coupling 松散耦合
lvalue 左值
machine code 机器码、机器代码
macro 宏
maintain 维护
managed code 受控代码、托管代码
Managed Extensions 受控扩充件、托管扩展
managed object 受控对象、托管对象
mangled name
manifest 清单
manipulator 操纵器(iostream预先定义的一种东西)
many-to-many relationship 多对多关系 (for database)
many-to-one relationship 多对一关系 (for database)
marshal 列集
member 成员
member access operator 成员取用运算子(有dot和arrow两种)
member function 成员函数
member initialization list成员初始值列表
memberwise 以member为单元…、members 逐一…
memberwise copy
memory 内存
memory leak 内存泄漏
menu 菜单
message 消息
message based 基于消息的
message loop 消息环
message queuing消息队列
metadata 元数据
metaprogramming元编程
method 方法
micro 微
middleware 中间件
middle tier 中间层
modeling 建模
modeling language 建模语言
modifier 修饰字、修饰符
modem 调制解调器
module 模块
most derived class最底层的派生类
mouse 鼠标
mutable 可变的
mutex 互斥元、互斥体
multidimensional OLAP (MOLAP) 多维OLAP(MOLAP) (for database)
multithreaded server application 多线程服务器应用程序
multiuser 多用户
multi-tasking 多任务
multi-thread 多线程
multicast delegate 组播委托、多点委托
named parameter 命名参数
named pipe 命名管道
namespace 名字空间、命名空间
native 原生的、本地
native code 本地码、本机码
Native Image Generator (NGEN)本地映像生成器
nested class 嵌套类
nested query 嵌套查询 (for database)
nested table 嵌套表 (for database)
network 网络
network card 网卡
nondependent name
object 对象
object based 基于对象的
object file 目标文件
object model 对象模型
object oriented 面向对象的
laser 激光
late binding 迟绑定
left outer join 左向外联接 (for database)
level 阶、层例
high level 高阶、高层
library 库
lifetime 生命期、寿命
link 连接、链接
linkage 连接、链接
linker 连接器、链接器
literal constant 字面常数
list 列表、表、链表
list box 列表框
livelock 活锁 (for database)
load 装载、加载
load balancing 负载平衡
loader 装载器、载入器
local 局部的
local object 局部对象
lock 锁
log 日志
login 登录
login security mode登录安全模式 (for database)
lookup table 查找表 (for database)
loop 循环
loose coupling 松散耦合
lvalue 左值
machine code 机器码、机器代码
macro 宏
maintain 维护
managed code 受控代码、托管代码
Managed Extensions 受控扩充件、托管扩展
managed object 受控对象、托管对象
mangled name
manifest 清单
manipulator 操纵器(iostream预先定义的一种东西)
many-to-many relationship 多对多关系 (for database)
many-to-one relationship 多对一关系 (for database)
marshal 列集
member 成员
member access operator 成员取用运算子(有dot和arrow两种)
member function 成员函数
member initialization list成员初始值列表
memberwise 以member为单元…、members 逐一…
memberwise copy
memory 内存
memory leak 内存泄漏
menu 菜单
message 消息
message based 基于消息的
message loop 消息环
message queuing消息队列
metadata 元数据
metaprogramming元编程
method 方法
micro 微
middleware 中间件
middle tier 中间层
modeling 建模
modeling language 建模语言
modifier 修饰字、修饰符
modem 调制解调器
module 模块
most derived class最底层的派生类
mouse 鼠标
mutable 可变的
mutex 互斥元、互斥体
multidimensional OLAP (MOLAP) 多维OLAP(MOLAP) (for database)
multithreaded server application 多线程服务器应用程序
multiuser 多用户
multi-tasking 多任务
multi-thread 多线程
multicast delegate 组播委托、多点委托
named parameter 命名参数
named pipe 命名管道
namespace 名字空间、命名空间
native 原生的、本地的
native code 本地码、本机码
Native Image Generator (NGEN)

如何防止代码被反编译


由于apk是Android虚拟机加载的,它有一定的规范,加密apk后Dalvik无法识别apk了。完全避免是不可能的,总有人能够破解你的代码。但是有几种方式来提高被反编译取代码的难度。
1 关键代码使用jni调用本地代码,用c或者c++编写,因此相对比较难于反编译
2 混淆java代码。混淆是不改变代码逻辑的情况下,增加无用代码,或者重命名,使反编译后的源代码难于看懂。 网上开源的java代码混淆工具较多,一般是用ant的方式来编译的。
1 . 在工程文件project.properties中加入下proguard.config=proguard.cfg , 如下所示:
target=android-8
proguard.config=proguard.cfg
Eclipse会通过此配置在工程目录生成proguard.cfg文件
2 . 生成keystore (如已有可直接利用)
按照下面的命令行 在D:\Program Files\Java\jdk1.6.0_07\bin》目录下,输入keytool -genkey -alias android.keystore -keyalg RSA -validity 100000 -keystore android.keystore
参数意义:-validity主要是证书的有效期,写100000天;空格,退格键 都算密码。
命令执行后会在D:\Program Files\Java\jdk1.6.0_07\bin》目录下生成 android.keystore文件。
3. 在Eclipce的操作
File -》 Export -》 Export Android Application -》 Select project -》 Using the existing keystore , and input password -》 select the destination APK file
经过混淆后的源代码,原先的类名和方法名会被类似a,b,c。。。的字符所替换,混淆的原理其实也就是类名和方法名的映射。
但4大组件并没有混淆(所有在清单文件定义的组件不能被混淆),因为系统需要通过清单文件来查找和运行应用程序。
proguard.cfg 文件代码解读
-optimizationpasses 5 -》设置混淆的压缩比率 0 ~ 7
-dontusemixedcaseclassnames -》 Aa aA
-dontskipnonpubliclibraryclasses -》如果应用程序引入的有jar包,并且想混淆jar包里面的class
-dontpreverify
-verbose -》混淆后生产映射文件 map 类名-》转化后类名的映射
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/* -》混淆采用的算法.
-keep public class * extends android.app.Activity -》所有activity的子类不要去混淆
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
-keep public class * extends android.app.backup.BackupAgentHelper
-keep public class * extends android.preference.Preference
-keep public class com.android.vending.licensing.ILicensingService
-keepclasseswithmembernames class * {
native 《methods》; -》 所有native的方法不能去混淆.
}
-keepclasseswithmembers class * {
public 《init》(android.content.Context, android.util.AttributeSet);
--》某些构造方法不能去混淆
}
-keepclasseswithmembers class * {
public 《init》(android.content.Context, android.util.AttributeSet, int);
}
-keepclassmembers class * extends android.app.Activity {
public void *(android.view.View);
}
-keepclassmembers enum * { -》 枚举类不能去混淆.
public static ** values();
public static ** valueOf(java.lang.String);
}
-keep class * implements android.os.Parcelable { -》 aidl文件不能去混淆.
public static final android.os.Parcelable$Creator *;
}

attrib怎么用


在G盘下新建个 记事本文档。
在里面写入:
@ echo off
echo 正在修复.....
attrib -s -h *.* /s /d
echo 修复完成。
pause
然后保存后缀名改为bat 或者 cmd 然后运行就可以了。
解释:@ echo off 表示程序运行时不显示这一行以及以后的命令。
echo 表示在屏幕上显示 这个命令后的 语句
attrib -s -h *.* /s /d 就是那个把G盘的所有文件显示出来包括子文件夹的命令了。
pause 暂停 在屏幕上显示 按任意键继续。
呵呵。
有什么不大懂的可以问我。

attrib -s -h -r /s /d 这是什么命令大神们帮帮忙


Attrib更改单个文件或目录的属性。+r 设置只读属性、-r 清除只读属性、-s 清除系统属性、-h 清除隐藏属性。 操作方法如下:

1、首先win + R 打开资源管理器输入: cmd 点击: 确定,在 cmd 里面输入: attrib /? 。

2、可以查看 attrib 命令和参数的使用。

3、查看所有文件属性: attrib。

4、设置文件为只读属性: attrib +r a2.txt。

5、设置隐藏文件: attrib +h iphone.txt。

6、最后设置系统文件: attrib +s test.txt。


电脑常用英文


CPU(Center Processor Unit)中央处理单元 %26QLC mainboard主板 x,ZI/u RAM(random access Y CMOS(Complementary Metal-Oxide-Semiconductor)互补金属氧化物半导体 f;W` setup安装 ANJA= uninstall卸载 t wizzard向导 ~|pM OS(Operation Systrem)操作系统 #7r OA(Office AutoMation)办公自动化 )( exit退出 tv edit编辑 r]09 copy复制 U$’!》 cut剪切 8 paste粘贴 YV% delete删除 %26Xw+~A select选择 ^p= find查找 Gx select all全选 ?V1.# replace替换 C~k’lS undo撤消 !d(.’G redo重做 _v program程序 L-HP license许可(证) 7:k back前一步 2u next下一步 T8Y finish结束 lxq folder文件夹 wg Destination Folder目的文件夹 \ user用户 fNKh? click点击 jeQ double click双击 uqPI} right click右击 FRI(%Z settings设置 i update更新 KU\S’G release发布 ^~,dxh data数据 D* data base数据库 3 DBMS(Data Base Manege I System)数据库管理系统 % view视图 L=# insert插入 AND(8, object对象 R%26 configuration配置 +;}Owt command命令 qa document文档 fW0. POST(power-on-self-test)电源自检程序 7 cursor光标 J)8J attribute属性 mEr icon图标 %26=8rqE service pack服务补丁 %+*oN option pack功能补丁 3oAM$%26 Demo演示 Q@31 short cut快捷方式 QI_ exception异常 /《%26PT/ debug调试 1p previous前一个 “g#F. column行 {J row列 a`a08 restart重新启动 S!RG text文本 xy font字体 M_ size大小 W scale比例 n interface界面 ? function函数 zmbduE access访问 》I“jB5 manual指南 u;-6F active激活 {uw2KY computer language计算机语言 G} menu菜单 PTPT GUI(graphical user C1;Y interfaces )图形用户界面 CG template模版 zEJf- page setup页面设置 》,VvY password口令 《/+fMZ code密码 f print preview打印预览 ;MRNq] zoom in放大 1 zoom out缩小 ’F pan漫游 g0《pg{ cruise漫游 6=^ full screen全屏 ^H}* tool bar工具条 .!@gC status bar状态条 f/ ruler标尺 5wLN=| table表 lE02W paragraph段落 》 symbol符号 J style风格 1 execute执行 nfjox graphics图形 ~=@r@i image图像 GFb Unix用于服务器的一种操作系统 NkC Mac OS苹果公司开发的操作系统 Qxsv;k OO(Object-Oriented)面向对象 *Dm_U virus病毒 x file文件 H| open打开 8d colse关闭 }f3 new新建 X:z 9 save保存 wkxUy exit退出 ,r clear清除 bOJE default默认 V LAN局域网 DyGj WAN广域网 M Client/Server客户机/服务器 T% LQE ATM( Asynchronous y Transfer Mode)异步传输模式 w#%vz Windows NT微软公司的网络操作系统 Cf^1 Internet互联网 Dk WWW(World Wide Web)万维网 Lt protocol协议 Pu! HTTP超文本传输协议 =$’Y FTP文件传输协议 #[C5 Browser浏览器 Jra3LP homepage主页 %26xhV Webpage网页 [ website网站 V{H] URL在Internet的WWW服务程序上 +{0[UY 用于指定信息位置的表示方法 V@ Online在线 jsU8M Email电子邮件 ;cK) casesensitive 区分大小写 ^ causespromptingtoconfirmyouwanttooverwritean 要求出现确认提示,在你想覆盖一个 4 centralpointsoftwareinc central point 软件股份公司 QLG changedirectory 更换目录 $xZ changedrive 改变驱动器 %26:_F08 changename 更改名称 Z+9 characterset 字符集 ( checkingfor 正在检查 OE checksadiskanddisplaysastatusreport 检查磁盘并显示一个状态报告 [c,O$4 chgdrivepath 改变盘/路径 [{? china 中国 hAn chooseoneofthefollowing 从下列中选一项 #I^ceW clearall 全部清除 kmHZ clearallbreakpoints 清除所有断点 `.W clearsanattribute 清除属性 -2%26P clearscommandhistory 清除命令历史 ~ clearscreen 清除屏幕 ; closeall 关闭所有文件 =a9 codegeneration 代码生成 d|’N colorpalette 彩色调色板 jqmU commandline 命令行 :》“B commandprompt 命令提示符 )h》z compressedfile 压缩文件 Z5I1g configuresaharddiskforusewithmsdos 配置硬盘,以为 MS-DOS 所用 e6 conventionalmemory 常规内存 《4|ig copiesdirectoriesandsubdirectorie***ceptemptyones 拷贝目录和子目录,空的除外 2《 copiesfileswiththearchiveattributeset 拷贝设置了归档属性的文件 F}?,Ei copiesoneormorefilestoanotherlocation 把文件拷贝或搬移至另一地方 ]X copiesthecontentsofonefloppydisktoanother 把一个软盘的内容拷贝到另一个软盘上 ( copydiskette 复制磁盘 u%266DR copymovecompfindrenamedeletevervieweditattribwordpprintlist C拷贝M移动 O比 F搜索R改名 D删除 V版本 E浏览A属性 W写字 P打印 L列表 P5 copyrightc 版权(c pe`pB% createdospartitionorlogicaldosdrive 创建DOS分区或逻辑DOS驱动器 fQN《》 createextendeddospartition 创建扩展DOS分区 $lo》 createlogicaldosdrivesintheextendeddospartition 在扩展DOS分区中创建逻辑DOS驱动器 D createprimarydospartition 创建DOS主分区 C+,dOl createsadirectory 创建一个目录 )PB’ createschangesordeletesthevolumelabelofadisk 创建,改变或删除磁盘的卷标 a currentfile 当前文件 ,Ny currentfixeddiskdrive 当前硬盘驱动器 *{G_^3 currentsettings 当前设置 d currenttime 当前时间 L^A9U cursorposition 光标位置 f%26x^N defrag 整理碎片 %26Q《 dele 删去 W deletepartitionorlogicaldosdrive 删除分区或逻辑DOS驱动器 h,#x deletesadirectoryandallthesubdirectoriesandfilesinit 删除一个目录和所有的子目录及其中的所有文件 Q?bbAz deltree 删除树 Z; devicedriver 设备驱动程序 wkO’gF dialogbox 对话栏 iq directionkeys 方向键 %a3g. directly 直接地 IHF directorylistargument 目录显示变量 +P.9os directoryof 目录清单 SapM( directorystructure 目录结构 3,/p; diskaccess 磁盘存取 YsT diskcopy 磁盘拷贝 Pu diskservicescopycomparefindrenameverifyvieweditmaplocateinitialize 磁盘服务功能: C拷贝 O比较 F搜索R改卷名V校验 浏览E编缉M图 L找文件 N格式化 LyqjZ* diskspace 磁盘空间 vkfiE displayfile 显示文件 EVP@4 displayoptions 显示选项 T displaypartitioninformation 显示分区信息 t].H displaysfilesinspecifieddirectoryandallsubdirectories 显示指定目录和所有目录下的文件 x0d displaysfileswithspecifiedattributes 显示指定属性的文件 )oJ displaysorchangesfileattributes 显示或改变文件属性 s8bo displaysorsetsthedate 显示或设备日期 (MnW: displayssetupscreensinmonochromeinsteadofcolor 以单色而非彩色显示安装屏信息 $^rC3x displaystheamountofusedandfreememoryinyoursystem 显示系统中已用和未用的内存数量 ]0__ displaysthefullpathandnameofeveryfileonthedisk 显示磁盘上所有文件的完整路径和名称 )lI displaysthenameoforchangesthecurrentdirectory 显示或改变当前目录 ,Ff,aO doctor 医生 : doesn 不 《DK( doesntchangetheattribute 不要改变属性 《n%PI dosshell DOS 外壳 EF doubleclick 双击 f doyouwanttodisplaythelogicaldriveinformationyn 你想显示逻辑驱动器信息吗(y/n)? ?puxa# driveletter 驱动器名 %26 editmenu 编辑选单 Ce` emsmemory ems内存 5 endoffile 文件尾 p,J’ endofline 行尾 1!9 enterchoice 输入选择 %Z]- entiredisk 转换磁盘 |4z environmentvariable 环境变量 ’o1F s esc esc b\g everyfileandsubdirectory 所有的文件和子目录 NZ%$. existingdestinationfile 已存在的目录文件时 20jCR《 expandedmemory 扩充内存 UE/L( expandtabs 扩充标签 jO]5;k explicitly 明确地 4hy extendedmemory 扩展内存 W8G fastest 最快的 ihbXqH fatfilesystem fat 文件系统 :v+. fdiskoptions fdisk选项 wKM4 fileattributes 文件属性 AC“G4? fileformat 文件格式 n\UCV filefunctions 文件功能 YRp fileselection 文件选择 “B%26i fileselectionargument 文件选择变元 x\Y]Y filesin 文件在 $4 filesinsubdir 子目录中文件 Q fileslisted 列出文件 1fCM filespec 文件说明 -_W*r filespecification 文件标识 Fcwm filesselected 选中文件 0{Y findfile 文件查寻 W3U4 fixeddisk 硬盘 SCf fixeddisksetupprogram 硬盘安装程序 W fixeserrorsonthedisk 解决磁盘错误 ].B floppydisk 软盘 /$/ formatdiskette 格式化磁盘 r ? formatsadiskforusewithmsdos 格式化用于MS-DOS的磁盘 OfS%26P4 formfeed 进纸 {^U freememory 闲置内存 c2-v{o fullscreen 全屏幕 wS functionprocedure 函数过程 Q graphical 图解的 +ZL graphicslibrary 图形库 sqCT groupdirectoriesfirst 先显示目录组 `P modulename 模块名 Ru? monitormode 监控状态 @%!%26p{ monochromemonitor 单色监视器 E:.T1a moveto 移至 ,)~LG multi 多 -E4 newdata 新建数据 XCGg newer 更新的 + newfile 新文件 [ptU newname 新名称 aIx 3 newwindow 新建窗口 EQnZ norton norton rPMw nostack 栈未定义 y《{k3J noteusedeltreecautiously 注意:小心使用deltree l onlinehelp 联机求助 1L8》6@ optionally 可选择地 )ur%26 or 或 |kP%26vO pageframe 页面 L^9j4Y pagelength 页长 J pausesaftereachscreenfulofinformation 在显示每屏信息后暂停一下 p’ pctools pc工具 “SiP) postscript 附言 hNA prefixmeaningnot 前缀意即\“不 id@6J prefixtoreverseorder 反向显示的前缀 =3 presetswitchesbyprefixinganyswitchwithhyphenforexamplew 用前缀和放在短横线-后的开关(例如/-w)预置开关 ?Ga pressakeytoresume 按一键继续 EbBQL pressanykeyforfilefunctions 敲任意键执行文件功能 》6 pressentertokeepthesamedate 敲回车以保持相同的日期 )yUR pressentertokeepthesametime 敲回车以保持相同的时间 @vH^bp pressesctocontinue 敲esc继续 T|e} pressesctoexit 敲键退出 ElD pressesctoexitfdisk 敲esc退出fdisk 1 pressesctoreturntofdiskoptions 敲esc返回fdisk选项 “vb previously 在以前 C printall 全部打印 Wz printdevice 打印设备 #p printerport 打印机端口 QO(`I( processesfilesinalldirectoriesinthespecifiedpath 在指定的路径下处理所有目录下的文件 Y^ programfile 程序文件 r\S(F programmingenvironment 程序设计环境 37fo z promptsyoubeforecreatingeachdestinationfile 在创建每个目标文件时提醒你 》by55J promptsyoutopressakeybeforecopying 在拷贝前提示你敲一下键 Pz pulldown 下拉 i]|#h? pulldownmenus 下拉式选单 vy quickformat 快速格式化 DP{ quickview 快速查看 3“\》 %26copy;云南国土资源职业学院-学院论坛 -- 说你想说的,写你想写的 readonlyfile 只读文件 k5BsN readonlyfileattribute 只读文件属性 |nZ readonlyfiles 只读文件 D8 readonlymode 只读方式 = redial 重拨 A(n_`A repeatlastfind 重复上次查找 “muN1 reportfile 报表文件 c resize 调整大小 2\| respectively 分别地 ]1YLL- rightmargin 右边距 5 rootdirectory 根目录 co%26 runsdebugaprogramtestingandeditingtool 运行debug, 它是一个测试和编辑工具 (^E runtimeerror 运行时出错 uS saveall 全部保存 plN. saveas 另存为@92G 这是我摘抄的, 我感觉它很好,写的很全?

java的JTextArea中怎么改变字体颜色


java swing 中JTEXTAREA不能改变字体颜色,它是纯文本组件,可以使用JTEXTPANE,通过操作DOCUMENT文档来控制JTEXTPANE显示的内容,下面的代码在一个JTEXTPANE中显示了一个图标,三行文字,每行用不同的颜色和大小显示: 

IMPORT JAVAX.SWING.*; 
IMPORT JAVA.AWT.*; 
IMPORT JAVA.AWT.EVENT.*; 
IMPORT JAVAX.SWING.TEXT.*; 
IMPORT JAVA.IO.*; 
PUBLIC CLASS TEST { 
JFRAME FRAME; 
JTEXTPANE TEXTPANE; 
FILE FILE; 
ICON IMAGE; 
PUBLIC TEST(){ 
FRAME = NEW JFRAME(“JTEXTPANE“); 
TEXTPANE = NEW JTEXTPANE(); 
FILE = NEW FILE(“./CLASSES/TEST/ICON.GIF“); 
IMAGE = NEW IMAGEICON(FILE.GETABSOLUTEFILE().TOSTRING()); 

PUBLIC VOID INSERT(STRING STR, ATTRIBUTESET ATTRSET) { 
DOCUMENT DOC = TEXTPANE.GETDOCUMENT(); 
STR =“\N“ + STR ; 
TRY { 
DOC.INSERTSTRING(DOC.GETLENGTH(), STR, ATTRSET); 

CATCH (BADLOCATIONEXCEPTION E) { 
SYSTEM.OUT.PRINTLN(“BADLOCATIONEXCEPTION: “ + E); 


PUBLIC VOID SETDOCS(STRING STR,COLOR COL,BOOLEAN BOLD,INT FONTSIZE) { 
SIMPLEATTRIBUTESET ATTRSET = NEW SIMPLEATTRIBUTESET(); 
STYLECONSTANTS.SETFOREGROUND(ATTRSET, COL); 
//颜色 
IF(BOLD==TRUE){ 
STYLECONSTANTS.SETBOLD(ATTRSET, TRUE); 
}//字体类型 
STYLECONSTANTS.SETFONTSIZE(ATTRSET, FONTSIZE); 
//字体大小 
INSERT(STR, ATTRSET); 

PUBLIC VOID GUI() { 
TEXTPANE.INSERTICON(IMAGE); 
SETDOCS(“第一行的文字“,COLOR.RED,FALSE,20); 
SETDOCS(“第二行的文字“,COLOR.BLACK,TRUE,25); 
SETDOCS(“第三行的文字“,COLOR.BLUE,FALSE,20); 
FRAME.GETCONTENTPANE().ADD(TEXTPANE, BORDERLAYOUT.CENTER); 
FRAME.ADDWINDOWLISTENER(NEW WINDOWADAPTER() { 
PUBLIC VOID WINDOWCLOSING(WINDOWEVENT E) { 
SYSTEM.EXIT(0); 
}}); 
FRAME.SETSIZE(200,300); 
FRAME.SETVISIBLE(TRUE); 

PUBLIC STATIC VOID MAIN(STRING ARGS) { 
TEST TEST = NEW TEST(); 
TEST.GUI(); 

}

关于计算机的一般单词


CPU(Center Processor Unit)中央处理单元 mainboard主板 RAM(random access memory)随机存储器(内存) ROM(Read Only Memory)只读存储器 Floppy Disk软盘 Hard Disk硬盘 CD-ROM光盘驱动器(光驱)
monitor监视器
keyboard键盘
mouse鼠标
chip芯片
CD-R光盘刻录机
HUB集线器
Modem= MOdulator-DEModulator,调制解调器
P-P(Plug and Play)即插即用
UPS(Uninterruptable Power Supply)不间断电源
BIOS(Basic-input-Output
System)基本输入输出系统
CMOS(Complementary Metal-Oxide-Semiconductor)互补金属氧化物半导体
setup安装
uninstall卸载
wizzard向导
OS(Operation Systrem)操作系统
OA(Office AutoMation)办公自动化
exit退出
edit编辑
copy复制
cut剪切
paste粘贴
delete删除
select选择
find查找
select all全选
replace替换
undo撤消
redo重做
program程序
license许可(证)
back前一步
next下一步
finish结束
folder文件夹
Destination Folder目的文件夹
user用户
click点击
double click双击
right click右击
settings设置
update更新
release发布
data数据
data base数据库
DBMS(Data Base Manege
System)数据库管理系统
view视图
insert插入
object对象
configuration配置
command命令
document文档
POST(power-on-self-test)电源自检程序
cursor光标
attribute属性
icon图标
service pack服务补丁
option pack功能补丁
Demo演示
short cut快捷方式
exception异常
debug调试
previous前一个
column行
row列
restart重新启动
text文本
font字体
size大小
scale比例
inte***ce界面
function函数
access访问
manual指南
active激活
computer language计算机语言
menu菜单
GUI(graphical user
inte***ces )图形用户界面
template模版
page setup页面设置
password口令
code密码
print preview打印预览
zoom in放大
zoom out缩小
pan漫游
cruise漫游
full screen全屏
tool bar工具条
status bar状态条
ruler标尺
table表
paragraph段落
symbol符号
style风格
execute执行
graphics图形
image图像
Unix用于服务器的一种操作系统
Mac OS苹果公司开发的操作系统
OO(Object-Oriented)面向对象
virus病毒
file文件
open打开
colse关闭
new新建
save保存
exit退出
clear清除
default默认
LAN局域网
WAN广域网
Client/Server客户机/服务器
ATM( Asynchronous
Transfer Mode)异步传输模式
Windows NT微软公司的网络操作系统
Internet互联网
WWW(World Wide Web)万维网
protocol协议
HTTP超文本传输协议
FTP文件传输协议
Browser浏览器
homepage主页
Webpage网页
website网站
URL在Internet的WWW服务程序上
用于指定信息位置的表示方法
Online在线
Email电子邮件
ICQ网上寻呼
Firewall防火墙
Gateway网关
HTML超文本标识语言
hypertext超文本
hyperlink超级链接
IP(Address)互联网协议(地址)
SearchEngine搜索引擎
TCP/IP用于网络的一组通讯协议
Telnet远程登录
IE(Internet Explorer)探索者(微软公司的网络浏览器)
Navigator引航者(网景公司的浏览器)
multimedia多媒体
ISO国际标准化组织
ANSI美国国家标准协会
able 能
activefile 活动文件
addwatch 添加监视点
allfiles 所有文件
allrightsreserved 所有的权力保留
altdirlst 切换目录格式
andfixamuchwiderrangeofdiskproblems 并能够解决更大范围内的磁盘问题
andotherinFORMation 以及其它的信息
archivefileattribute 归档文件属性
assignto 指定到
autoanswer 自动应答
autodetect 自动检测
autoindent 自动缩进
autosave 自动存储
availableonvolume 该盘剩余空间
badcommand 命令错
badcommandorfilename 命令或文件名错
batchparameters 批处理参数
binaryfile 二进制文件
binaryfiles 二进制文件
borlandinternational borland国际公司
bottommargin 页下空白
bydate 按日期
byextension 按扩展名
byname 按名称
bytesfree 字节空闲
callstack 调用栈
casesensitive 区分大小写
causespromptingtoconfirmyouwanttooverwritean 要求出现确认提示,在你想覆盖一个
centralpointsoftwareinc central point 软件股份公司
changedirectory 更换目录
changedrive 改变驱动器
changename 更改名称
characterset 字符集
checkingfor 正在检查
checksadiskanddisplaysastatusreport 检查磁盘并显示一个状态报告
chgdrivepath 改变盘/路径
china 中国
chooseoneofthefollowing 从下列中选一项
clearall 全部清除
clearallbreakpoints 清除所有断点
clearsanattribute 清除属性
clearscommandhistory 清除命令历史
clearscreen 清除屏幕
closeall 关闭所有文件
codegeneration 代码生成
colorpalette 彩色调色板
commandline 命令行
commandprompt 命令提示符
compressedfile 压缩文件
configuresaharddiskforusewithmsdos 配置硬盘,以为 MS-DOS 所用
conventionalmemory 常规内存
copiesdirectoriesandsubdirectorie***ceptemptyones 拷贝目录和子目录,空的除外
copiesfileswiththearchiveattributeset 拷贝设置了归档属性的文件
copiesoneormorefilestoanotherlocation 把文件拷贝或搬移至另一地方
copiesthecontentsofonefloppydisktoanother 把一个软盘的内容拷贝到另一个软盘上
copydiskette 复制磁盘
copymovecompfindrenamedeletevervieweditattribwor***rintlist C拷贝M移动 O比 F搜索R改名 D删除 V版本 E浏览A属性 W写字 P打印 L列表
copyrightc 版权(c
createdospartitionorlogicaldosdrive 创建DOS分区或逻辑DOS驱动器
createextendeddospartition 创建扩展DOS分区
createlogicaldosdrivesintheextendeddospartition 在扩展DOS分区中创建逻辑DOS驱动器
createprimarydospartition 创建DOS主分区
createsadirectory 创建一个目录
createschangesordeletesthevolumelabelofadisk 创建,改变或删除磁盘的卷标
currentfile 当前文件
currentfixeddiskdrive 当前硬盘驱动器
currentsettings 当前设置
currenttime 当前时间
cursorposition 光标位置
readonlyfile 只读文件
readonlsaveall 全部保存
saveas 另存为
这些都是最常用的单词

setattribute和setattributenode的区别


setattribute和setattributenode的区别官方解释如下:
1、setAttribute方法的注释为:设定具有指定名称的属性的值。
setAttributeNode 方法设置或更新当前元素属性为指定的属性节点(也就是setAttributeNode的参数)
2、举例说明:
//前面省略N行代码
Playlist.load(“file://c:\\simple.XML“);
//获取节点列表
ElemList = Playlist.getElementsByTagName(“media“);
// 获取节点列表中的第一个节点,并将节点转换为元素
Elem = (IXMLDOMElement)ElemList;
//创建一个属性
NodeAtt = Playlist.createAttribute(“dur“);
NodeAtt.value = (“15s“);
//将上面新建的属性附加到Elem 元素
Elem.setAttributeNode(NodeAtt);

免责声明:本网信息来自于互联网,目的在于传递更多信息,并不代表本网赞同其观点。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,并请自行核实相关内容。本站不承担此类作品侵权行为的直接责任及连带责任。如若本网有任何内容侵犯您的权益,请及时联系我们,本站将会在24小时内处理完毕。
相关文章
返回顶部