06 2021 档案

摘要:from django.contrib import admin from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), # 错误代码演示 # path('axf/', includ 阅读全文
posted @ 2021-06-30 15:37 胸怀丶若谷 阅读(537) 评论(0) 推荐(0) 编辑
摘要:必须是数组或者列表类型 如下所示: # 错误# STATICFILES_DIRS = { # os.path.join(BASE_DIR, 'static'), # }# 正确 STATICFILES_DIRS = [ os.path.join(BASE_DIR, 'static'), ] 阅读全文
posted @ 2021-06-30 15:06 胸怀丶若谷 阅读(267) 评论(0) 推荐(0) 编辑
摘要:原因是ReadMe文件不在本地中, 此时我们要执行git pull --rebase origin master命令README.md拉到本地, 任何然后执行git push origin master 另git did not exit cleanly (exit code 1) (1844 ms 阅读全文
posted @ 2021-06-29 17:28 胸怀丶若谷 阅读(1097) 评论(0) 推荐(0) 编辑
摘要:<template name:trailerStars> <image v-for="yellow in yellowScore" src="../static/icos/star-yellow.png" class="star-ico"> </image> <image v-for="gray i 阅读全文
posted @ 2021-06-20 12:39 胸怀丶若谷 阅读(337) 评论(0) 推荐(0) 编辑
摘要:为什么使用图标字体库: 在做ui设计的工作中,因为程序员的要求,所以接触到字体库。这里的字体库是指把一个项目要用到的图标做成svg格式,然后借助网站生成像字体一样可以直接改变大小和颜色的文件包。(ps: svg格式是矢量图,所以显示更清晰,但存在浏览器适配问题,png图片可能会糊,占存大) 因为字体 阅读全文
posted @ 2021-06-18 16:24 胸怀丶若谷 阅读(364) 评论(0) 推荐(0) 编辑
摘要:MVC模式1. model:模型层,数据的增删改查2. view:视图层,前端页面3. controller:控制层,处理业务 文件页面结构1. 页面以`.vue`结尾2. `template`,`script`,`style`三个标签,一个页面只能存在一个3. 代码段分析如下所示: <script 阅读全文
posted @ 2021-06-17 13:47 胸怀丶若谷 阅读(117) 评论(0) 推荐(0) 编辑
摘要:安装命令: npm install -g nodemon 运行命令: nodemon server.js 运行结果: 阅读全文
posted @ 2021-06-15 09:42 胸怀丶若谷 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-06-09 13:57 胸怀丶若谷 阅读(43) 评论(0) 推荐(0) 编辑
摘要:解决方案: 打开VS Code 文件 -> 首选项 -> 设置 -> 在 settings.json 中编辑 在 settings.json 中,加入: "php.executablePath": "E:/wamp64/bin/php/php7.0.10/php.exe", "php.validat 阅读全文
posted @ 2021-06-08 16:22 胸怀丶若谷 阅读(1613) 评论(0) 推荐(0) 编辑
摘要:依赖于jQuery的库,称为jQuery插件,其它的插件概念与之一致 阅读全文
posted @ 2021-06-08 15:19 胸怀丶若谷 阅读(54) 评论(0) 推荐(0) 编辑
摘要:缺少环境配置, 程序下载地址如下: https://www.microsoft.com/zh-cn/download/confirmation.aspx?id=30679 点击下载,下载完成后,双击程序安装即可。 阅读全文
posted @ 2021-06-08 14:43 胸怀丶若谷 阅读(241) 评论(0) 推荐(0) 编辑
摘要:var arr = [1, 3, 5,7,9]; jQuery.each(arr, function(key, value){ if(key 2){ return true; } console.log(key,value); }) ; 上段代码等价于: var arr = [1, 3, 5,7,9 阅读全文
posted @ 2021-06-07 20:20 胸怀丶若谷 阅读(181) 评论(0) 推荐(0) 编辑
摘要:// 真数组转伪数组 [].push.apply(obj,arr); // 伪数组转真数组 [].slice.call(obj); 阅读全文
posted @ 2021-06-06 23:39 胸怀丶若谷 阅读(38) 评论(0) 推荐(0) 编辑
摘要:<script src="js/jquery-1.12.4.js"></script><script> window.onload = function (ev) { /* jQ入口函数传入不同参数得到的实例 1.传入 '' null undefined NaN 0 false 2.传入html片段 阅读全文
posted @ 2021-06-05 17:11 胸怀丶若谷 阅读(41) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2021-06-05 16:27 胸怀丶若谷 阅读(70) 评论(0) 推荐(0) 编辑
摘要:(function f1() { var num = 10; window.num = num;})(); console.log(num); 阅读全文
posted @ 2021-06-05 16:03 胸怀丶若谷 阅读(318) 评论(0) 推荐(0) 编辑
摘要:musicSeekTo: function(value){this.audio.currentTime = this.audio.duration*value; }, musicVoiceSeekTo: function(value){this.audio.volume = value; } 改为: 阅读全文
posted @ 2021-06-04 14:02 胸怀丶若谷 阅读(4475) 评论(0) 推荐(0) 编辑
摘要:以下是错误的写法: // 监听复选框的点击事件 $(".content_list").delegate(".list_check", "click"), function(){ }; 正确 (注意括号的位置): // 监听复选框的点击事件 $(".content_list").delegate(". 阅读全文
posted @ 2021-06-03 10:04 胸怀丶若谷 阅读(574) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示