摘要:
写的第一个插件,需要改进的地方还请大神指出,样式比较简单,不喜勿喷 html css js
阅读全文
posted @ 2019-06-21 11:14
Lesson-J
阅读(148)
推荐(0)
摘要:
function format_money(m){ //m--需要判断的金额 if(/[^0-9\.]/.test(m)){ return "0.00" } if(m == "" || m == null){ return "0.00" } var str = m.toString() var num1 = ...
阅读全文
posted @ 2019-03-11 15:40
Lesson-J
阅读(272)
推荐(0)
摘要:
日志 -- 用来记录用户行为或者代码的执行过程 logging.debug('debug message') # 低级别的 # 排错信息 logging.info('info message') # 正常信息logging.warning('warning message') # 警告信息loggi
阅读全文
posted @ 2018-10-25 16:49
Lesson-J
阅读(198)
推荐(0)
摘要:
用typeof查看数据类型 <pre> <script type="text/javascript"> alert(typeof 12345); <span>//输出number</span> alert(typeof "abc"); <span>//输出string</span> al
阅读全文
posted @ 2018-10-21 10:32
Lesson-J
阅读(150)
推荐(1)
摘要:
百度输入法 弹出层效果 简易JS年历 单一按钮显示隐藏播放列表
阅读全文
posted @ 2018-10-18 20:23
Lesson-J
阅读(6631)
推荐(0)
摘要:
控制div属性 网页换肤 函数接收参数并弹出
阅读全文
posted @ 2018-10-16 19:45
Lesson-J
阅读(172)
推荐(1)
摘要:
使用bootstrap写的一个进度条
阅读全文
posted @ 2018-10-16 13:58
Lesson-J
阅读(126)
推荐(0)
摘要:
JS常用方法 string.slice(start, stop)和string.substring(start, stop): 两者的相同点:如果start等于end,返回空字符串如果stop参数省略,则取到字符串末如果某个参数超过string的长度,这个参数会被替换为string的长度 subst
阅读全文
posted @ 2018-10-13 19:12
Lesson-J
阅读(131)
推荐(1)
摘要:
反射: 是用字符串类型的名字操作变量 反射的常用方法:hasattr getattr 通过反射操作导入的模块或类的属性和方法 import time key = input('>>>') #输入time print(getattr(time,key)()) #输出结果 : 1539251866.13
阅读全文
posted @ 2018-10-11 18:59
Lesson-J
阅读(94)
推荐(1)
posted @ 2018-10-11 14:14
Lesson-J
阅读(224)
推荐(0)