变量命名及常⽤属性⼤全
变量名⼤全1、test 测验
2、demo 演⽰
3、ch 表⽰单个字符,
4、str 表⽰字符串,
5、n 代表次数,
6、reg 表⽰正则,
7、expr 表⽰表达式,
8、lens 表⽰数组长度,
9、count 表⽰数量,
10、p 表⽰数据的精度,
11、q 表⽰查询(query),
12、src 表⽰数据源(source),
13、no 表⽰数字(number),
14、rate 表⽰⽐率,
15、status 表⽰状态,
16、bool 表⽰布尔值,
17、arr 表⽰数组值,
19、obj 表⽰对象值,
x 和 y 表⽰坐标两轴,
func 表⽰函数,
ua表⽰User Agent,
size 表⽰⼤⼩,
unit 表⽰单位,
hoz 表⽰⽔平⽅向,
vert 表⽰垂直⽅向,
radix 表⽰基数,根
check ‘校验’
isShow: ‘是否显⽰’,
isVisible: ‘是否可见’,
isLoading: ‘是否处于加载中’,
isConnecting: ‘是否处于连接中’,
isValidating: ‘正在验证中’,
isRunning: ‘正在运⾏中’,
isListening: ‘正在监听中’
disabled: ‘是否禁⽤’,
editable: ‘是否可编辑’,
clearable: ‘是否可清除’,
readonly: ‘只读’,
expandable: ‘是否可展开’,
checked: ‘是否选中’,
enumberable: ‘是否可枚举’,
iterable: ‘是否可迭代’,
clickable: ‘是否可点击’,
draggable: ‘是否可拖拽’
withTab: ‘是否带选项卡’,
withoutTab: ‘不带选项卡’,
enableFilter: ‘开启过滤’,
allownCustomScale: ‘允许⾃定义缩放’,
shouldClear: ‘是否清除’,
canSelectItem: ‘是否能选中元素’,
noColon: ‘不显⽰label后⾯的冒号’,
checkJs: ‘检查Js’,
emitBOM: ‘Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files.’virtualScroll: ‘是否启⽤虚拟滚动模式’,
unlinkPanels: ‘在范围选择器⾥取消两个⽇期⾯板之间的联动’,
unlinkPanels: ‘在范围选择器⾥取消两个⽇期⾯板之间的联动’, validateEvent: ‘输⼊时是否触发表单的校验’
onSubmit: ‘提交表单’,
handleSizeChange: ‘处理分页页数改变’,
handlePageChange: ‘处理分页每页⼤⼩改变’,
onKeydown: ‘按下键’
getUsers: ‘获取⽤户列表’,
fetchToken: ‘取得Token’,
deleteUser: ‘删除⽤户’,
removeTag: ‘移除标签’,
updateUsrInfo: ‘更新⽤户信息’,
addUsr: ‘添加⽤户’,
createAccount: ‘创建账户’
toTplDetail: ‘跳转到模板详情页⾯’,
navigateToHome: ‘导航到⾸页’,
jumpHome: ‘跳转⾸页’,
goHome: ‘跳转⾸页’,
redirectToLogin: ‘重定向到登录页’,
switchTab: ‘切换Tab选项卡’,
rotate属性backHome: ‘回到主页’
formatTimeFilter: ‘在AngularJs和Vue中,通常⽤于过滤器命名’, storeCtrl: ‘⽤于AngularJs定义控制器⽅法’,
formatPipe: ‘⽤于Angular中,标识管道⽅法’,
$emit: ‘Vue中的实例⽅法’,
$$formatters: ‘AngularJs中的内置⽅法’,
beforeCreate: ‘Vue的⽣命周期命名’,
componentWillMount: ‘React⽣命周期命名’, componentDidMount: ‘React⽣命周期命名’,
afterContentInit: ‘Anuglar⽣命周期命名’,
afterViewChecked: ‘Angula⽣命周期命名’,
httpProvider: ‘AngularJs服务’,
userFactory: ‘⼯⼚函数’,
useCallback: ‘React钩⼦函数’
getItemById: ‘根据ID获取数据元素’,
getItemsBySelected: ‘根据传⼊的已选列表ID来获取列表全部数据’, queryUserByUid: ‘根据UID查询⽤户’
formatDate: ‘格式化⽇期’,
convertCurrency: ‘转换货币单位’,
inverseList: ‘反转数据列表’,
toggleAllSelected: ‘切换所有已选择数据状态’,
parseXml: ‘解析XML数据’,
flatSelect: ‘展开选择数据’,
sortByDesc: ‘按降序排序’
users: ‘⽤户列表’,
userList: ‘⽤户列表’,
tabOptions: ‘选项卡选项’,
stateMaps: ‘状态映射表’,
selectedNodes: ‘选中的节点’,
btnGroup: ‘按钮组’,
userEntities: ‘⽤户实体’
title: ‘标题’
label: ‘标签名’
name: ‘元素名’
field: ‘字段’,
flag: ‘标识’,
index: ‘索引’
index: ‘索引’
exist: ‘存在’
activeTab: ‘当前选中选项卡’,
currentPage: ‘当前页’,
selectedData: ‘当前选项中数据’,
swapData: ‘临时交换数据’,
tempData: ‘临时数据’,
dataSnapshot: ‘数据快照’
oldVal: ‘旧值’,
newVal: ‘新值’
// 组合⼀
from: ‘从…’,
to: ‘到…’
// 组合⼆
prev: ‘上⼀个…’,
next: ‘下⼀个…’,
cur: ‘当前’
// 组合三
source: ‘源’,
target: ‘⽬标’
// 组合四
start: ‘开始’,
end: ‘结束’
load: ‘已完成加载’,
unload: ‘资源正在被卸载’,
beforeunload: ‘资源即将被卸载’,
error: ‘失败时’,
abort: ‘中⽌时’,
focus: ‘元素获得焦点’,
blur: ‘元素失去焦点’,
cut: ‘已经剪贴选中的⽂本内容并且复制到了剪贴板’,
copy: ‘已经把选中的⽂本内容复制到了剪贴板’,
paste: ‘从剪贴板复制的⽂本内容被粘贴’,
resize: ‘元素重置⼤⼩’,
scroll: ‘滚动事件’,
reset: ‘重置’,
submit: ‘表单提交’,
online: ‘在线’,
offline: ‘离线’,
open: ‘打开’,
close: ‘关闭’,
connect: ‘连接’,
start: ‘开始’,
end: ‘结束’,
print: ‘打印’,
afterprint: ‘打印机关闭时触发’,
click: ‘点击’,
dblclick: ‘双击’,
change: ‘变动’,
select: ‘⽂本被选中被选中’,
keydown/keypress/keyup: ‘按键事件’,
mousemove/mousedown/mouseup/mouseleave/mouseout: ‘⿏标事件’, touch: ‘轻按’,
contextmenu: ‘右键点击 (右键菜单显⽰前)’,
wheel: ‘滚轮向任意⽅向滚动’,
pointer: ‘指针事件’,
pointer: ‘指针事件’,
drag/dragstart/dragend/dragenter/dragover/dragleave: ‘拖放事件’, drop: ‘元素在有效释放⽬标区上释放’,
play: ‘播放’,
pause: ‘暂停’,
suspend: ‘挂起’,
complete: ‘完成’,
seek: ‘搜索’,
install: ‘安装’,
progress: ‘进⾏’,
broadcast: ‘⼴播’,
input: ‘输⼊’,
message: ‘消息’,
valid: ‘有效’,
zoom: ‘放⼤’,
rotate: ‘旋转’,
scale: ‘缩放’,
upgrade: ‘更新’,
ready: ‘准备好’,
active: ‘激活’
assignedEvent: ‘分配事件’,
closedEvent: ‘关闭事件’,
labeledEvent: ‘标签事件’,
lockedEvent: ‘锁事件’,
deployedEvent: ‘部署事件’
selectAll: ‘选择所有’,
cellClick: ‘当某个单元格被点击时会触发该事件’,
sortChange: ‘当表格的排序条件发⽣变化的时候会触发该事件’
const SET_CURRENT_USER = ‘[User] Set current’;
const ADD_THREAD = ‘[Thread] Add’;
const UPDATE_TRIP_SUCCESS = ‘Update [Trip] Success’; sentAt: ‘发送时间’
addAt: ‘添加时间’
updateAt: ‘更新时间’
startDate: ‘开始⽇期’
endDate: ‘结束⽇期’
startTime: ‘开时时间’
endTime: ‘结束时间’
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论