2019年6月21日
摘要: 写的第一个插件,需要改进的地方还请大神指出,样式比较简单,不喜勿喷 html css js 阅读全文
posted @ 2019-06-21 11:14 Lesson-J 阅读(139) 评论(1) 推荐(0) 编辑
  2019年3月11日
摘要: 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 阅读(262) 评论(0) 推荐(0) 编辑
  2018年10月25日
摘要: 日志 -- 用来记录用户行为或者代码的执行过程 logging.debug('debug message') # 低级别的 # 排错信息 logging.info('info message') # 正常信息logging.warning('warning message') # 警告信息loggi 阅读全文
posted @ 2018-10-25 16:49 Lesson-J 阅读(197) 评论(0) 推荐(0) 编辑
  2018年10月21日
摘要: 用typeof查看数据类型 <pre> &lt;script type="text/javascript"&gt; alert(typeof 12345); <span>//输出number</span> alert(typeof "abc"); <span>//输出string</span> al 阅读全文
posted @ 2018-10-21 10:32 Lesson-J 阅读(147) 评论(0) 推荐(1) 编辑
  2018年10月18日
摘要: 百度输入法 弹出层效果 简易JS年历 单一按钮显示隐藏播放列表 阅读全文
posted @ 2018-10-18 20:23 Lesson-J 阅读(6361) 评论(0) 推荐(0) 编辑
  2018年10月16日
摘要: 控制div属性 网页换肤 函数接收参数并弹出 阅读全文
posted @ 2018-10-16 19:45 Lesson-J 阅读(169) 评论(0) 推荐(1) 编辑
摘要: 使用bootstrap写的一个进度条 阅读全文
posted @ 2018-10-16 13:58 Lesson-J 阅读(123) 评论(0) 推荐(0) 编辑
  2018年10月13日
摘要: JS常用方法 string.slice(start, stop)和string.substring(start, stop): 两者的相同点:如果start等于end,返回空字符串如果stop参数省略,则取到字符串末如果某个参数超过string的长度,这个参数会被替换为string的长度 subst 阅读全文
posted @ 2018-10-13 19:12 Lesson-J 阅读(125) 评论(0) 推荐(1) 编辑
  2018年10月11日
摘要: 反射: 是用字符串类型的名字操作变量 反射的常用方法:hasattr getattr 通过反射操作导入的模块或类的属性和方法 import time key = input('>>>') #输入time print(getattr(time,key)()) #输出结果 : 1539251866.13 阅读全文
posted @ 2018-10-11 18:59 Lesson-J 阅读(92) 评论(0) 推荐(1) 编辑
摘要: 使用递归函数实现 使用堆栈实现 阅读全文
posted @ 2018-10-11 14:14 Lesson-J 阅读(219) 评论(0) 推荐(0) 编辑