上一页 1 ··· 4 5 6 7 8
摘要: 隐式类型转换 调用Number()当有运算符(加减乘除,求余)时,会调用Number()转为数字再运算,除了 加 当 有字符串时就变身成拼接Boolean();String();typeof()string返回的类型 预编译 在<script>里面的代码,进行预编译,将变量声明,,函数声明提高在逻辑 阅读全文
posted @ 2019-09-15 16:58 古月大叔 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 相邻的border会平分所占的区域,出现一个斜线, .my_triangle{ width: 10px; height: 10px; background-color: blue; border-width: 100px ; border-style: solid; border-left-colo 阅读全文
posted @ 2019-09-13 16:23 古月大叔 阅读(317) 评论(0) 推荐(0) 编辑
摘要: event.stopPropagation();//阻止事件冒泡 ,可阻止父类事件的发生 event.preventDefault();//阻止默认行为 如A标签 阅读全文
posted @ 2019-09-12 15:16 古月大叔 阅读(5136) 评论(0) 推荐(0) 编辑
摘要: 常用命令 git commit -m`v1.0-hello 提交至仓库 -m为描述 gitignore文件忽略规则 git安装教程 https://www.jianshu.com/p/8b0fa999cba7 本地代码上传教程 https://blog.csdn.net/Lucky_LXG/arti 阅读全文
posted @ 2019-09-07 20:50 古月大叔 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 样式中设置content为元素的data-值 p{ color: deepskyblue; } p:before{ content: attr(data-beforeContent); color: darkred; } 然后js修改 $('p').on('click',function(){ $( 阅读全文
posted @ 2019-09-04 14:42 古月大叔 阅读(987) 评论(0) 推荐(0) 编辑
摘要: 字符串 1 使用&quot; 。比如: (&quot;'+key+'&quot;)例: htmlStr = htmlStr + '<span><img src="'+src+'"/><i onclick="deleteFile(&quot;'+key+'&quot;);" class="fa fa- 阅读全文
posted @ 2019-09-04 09:56 古月大叔 阅读(3558) 评论(0) 推荐(0) 编辑
摘要: ps:mysql5.6以上的版本,,安装目录下没有my.ini 或者my.cnf文件,,可以在安装目录下的programData文件夹找到,, 阅读全文
posted @ 2019-09-03 20:17 古月大叔 阅读(223) 评论(0) 推荐(0) 编辑
摘要: jq $("#hiddenFile").get(0).filesjs this.files; 获取radio的值 $('input:radio:checked').val(); $("input[type='radio']:checked").val(); $("input[name='new_ty 阅读全文
posted @ 2019-09-02 10:41 古月大叔 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 代理(Proxy) 现在要扩展eat方法的功能, 静态代理(方法的代理) IPeople接口有eat()方法 people类实现IPeople 代理people 测试 不足:有上述代码可知,访问的方法变为代理对象的方法,但真正eat方法还是有目标对象执行。这样就可以不改动原来的代码,,来增加功能。 阅读全文
posted @ 2019-09-01 22:03 古月大叔 阅读(236) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8