- 构建工具webpack&vite
2301_80480494
webpack前端node.js
1.webpack使用步骤:1.初始化项目yarninit-y(也可以是npm其他包管理工具)2.安装依赖webpackwebpack-cli:yarnadd-Dwebpackwebpack-cli(-D是只用于开发时候加)3.在项目中创建src目录,然后编写代码4.yarnwebpack打包项目代码观察dist目录*注意:1.src里的是源码用的是前端规范(比如导出:exportdefault)
- 乐视云大前端技术架构
loulanyijian
前端架构技术架构前端乐视vue-js
团队介绍乐视云计算大前端,目前团队人数20+,负责公司全部业务线的前端工作,包括官网、商业平台的前端构建,flash、html5播放器的SDK,以及还处于Alpha阶段的ReactNative打包App的平台工具——LeVally,包括PC端、移动端的前端项目。在大量的业务实践中,我们团队的人员,经过各种探索、踩坑,形成了如今的技术架构,并且在不断的更新完善中前端规范代码未动,规范先行。可以在上图
- Vue前端规范【二】
怂怂敲代码
vue.js前端javascript
在大多数项目中,这些规则被发现可以提高可读性和/或开发人员体验。如果你违反了它们,你的代码仍然会运行,但违规应该是罕见的,而且有充分的理由。组件文件每当构建系统可用于连接文件时,每个组件都应位于其自己的文件中。这有助于您在需要编辑组件或查看如何使用组件时更快地找到组件。//坏app.component('TodoList',{//...})app.component('TodoItem',{//.
- Vue前端规范【一】
怂怂敲代码
vue.js前端javascript
基本规范这些规则有助于防止错误,因此请不惜一切代价学习并遵守这些规则。例外可能存在,但应该非常罕见,并且只能由具有JavaScript和Vue专业知识的人进行。使用多词组件名称用户组件名称应始终为多字,但root除外App组件。这可以防止与现有和将来的HTML元素发生冲突,因为所有HTML元素都是一个单词。//坏//好使用详细的道具定义在提交的代码中,prop定义应始终尽可能详细,至少指定类型。/
- 前端规范扩展
arguments_zd
杂谈前端
前端编程规范是基于原有vue2基础上那套《编码风格及标准》上,应用于vue3、typescript、vite2基础上延伸出来的扩展补充,持续完善一、编码规范ESLint代码检测工具+Pretter代码格式化工具配合双校验代码Git规范-编码工具vscode同步参考文档中的《编码风格及标准》进行配置,这里不再赘述;-相关配置已生成到业务项目中,开发无需过度关注和调试配置,有问题群里反馈交流同步解决;
- 【前端规范】
【南汐】前端
开发语言前端javascripthtmlcss3
1前言HTML作为描述网页结构的超文本标记语言,一直有着广泛的应用。本文档的目标是使HTML代码风格保持一致,容易被理解和被维护。2代码风格2.1缩进与换行[强制]使用4个空格做为一个缩进层级,不允许使用2个空格或tab字符。解释:对于非HTML标签之间的缩进,比如script或style标签内容缩进,与script或style标签的缩进同级。示例:/*样式内容的第一级缩进与所属的style标签对
- pbootcms黑色风格响应式新闻资讯博客整站源码
后台模板学习
cms
演示(自适应手机版)响应式新闻资讯技术博客织梦模板游戏新闻网站源码下载51138.cn更适合新手上传即用可改mysql数据库语言程序:PHP5.2+SQLite前端规范:html+css+jQuery设备支持:PC端+手机端浏览器支持:兼容IE7+、Firefox、Chrome、360浏览器等主流浏览器最佳分辨率:1920px+1440px程序运行环境:linux+nginx/linux+apac
- 现代化前端规范:工具+代码
xiyangbaixue
前端文章前端javascript开发语言
前端周刊发表每周前端技术相关的大事件、文章教程、一些框架的版本更新、以及代码和工具。每周定期发表,欢迎大家关注、转载。欢迎关注公众号前端每周看工具vscodevscode可以说是前端最流行的编辑器,其有丰富的插件系统。不同开发人员对编辑器设置不同,比如缩进是用空格还是tab,缩进几个等等。如果多人开发同一个项目,必然会引起文件冲突,所以一个团队最好能统一编辑器。参考:https://editorc
- 代码规范及开发工具
vigel1990
代码规范
代码规范及开发工具:前端(vscode、idea):JavaScript规范:1.谷歌开源项目风格指南:JavaScript、TypeScript篇https://zh-google-styleguide.readthedocs.io/en/latest/google-typescript-styleguide/contents/#2.阿里前端规范:GitHub-alibaba/p3c:Aliba
- 【前端学习记录】Vue前端规范整理
Note_creek
前端前端学习vue.js
文章目录前言一、文件及文件夹命名二、钩子顺序三、注释规范四、组件封装五、CSS编码规范六、JS编码规范前言优秀的项目源码,即使是多人开发,看代码也如一人之手。统一的编码规范,可使代码更易于阅读,易于理解,易于维护。一、文件及文件夹命名不能使用中文、数字(需要数字是用英文first、second字符代替)文件名使用全小写vue、css、js、jpg等图片格式多单词文件名使用中划线-代替-eg:big
- 从0到1建立前端规范
诸葛亮的芭蕉扇
前端
本文适合打算建立前端规范的小伙伴阅读一、为什么需要规范规范能给我们带来什么好处,如果没有规范会造成什么后果?这里主要拿代码规范来说。统一代码规范的好处:提高代码整体的可读性、可维护性、可复用性、可移植性和可靠性,这会从根本上降低开发成本,也是最重要的一点。保证代码的一致性:软件系统中最重要的因素之一就是编码的一致性。如果编码风格一致,也更加易于维护,因为团队内任何人都可以快速理解并修改。提升团队整
- 项目git commit时卡主不良代码:husky让Git检查代码规范化工作
zhoulujun
看完《前端规范之Git工作流规范(Husky+Commitlint+Lint-staged)https://www.cnblogs.com/Yellow-ice/p/15349873.html》,再次修改本文团队人一多,提交一多,还是要对备注加以区分,好快速找到变更点。这时候就需要对每次提交,需要输入message,对提交的备注进行规范化处理代码规范落地难:归根结底在于需要工具去强行保证代码必须经
- 匠者用心临砥上流-Bootstrap v4 前端架构翻译手记
zoomlaziti
Bootstrap架构前端web开发逐浪CMS
做Web开发和移动开发的人,很少有人不知道Bootstrap前端架构。作为当今世界上最优秀的前端架构,从Twitter内部项目孵化出来,并以开源、专注维护更新、易于使用、只关注最核心、移动优化先等机制,获得了国际上众多团队的交赞。即使是国内BAT等一线企业的很多项目也以Bootstrap为核心进行开发,甚至有多个前端规范是在Boostrap基础上进行“改装”,可见影响力之大。逐浪CMS从Boo
- 最简前端规范——vue篇(四)
栗子童鞋
前端规范前端规范
为什么会提到vue的规范?众所周知,Jq的时代逐渐消退,三大框架强势崛起。NG、REACT、VUE三国鼎立。三个框架各有所长,技术就是为了解决问题,So由于目前本人手头的项目是基于vue的前提,所以去研究了一下这方面的一些规范,以至于在和团队配合当中能够有一致性。好了话不多说,进入正式环节。那么首先介绍规范之前,先从几个角度分析一下vue具有哪些特征,哪些常用,哪些是重点,哪些对于团队开发来说影响
- 前端传的参数自动转换为枚举的方式——spring convert转换
快乐是你的与我无关了
项目springjava
前端传的字符串自动转换为对应枚举的方式背景在项目中我们通常会使用枚举来接收一些值固定的参数,例如此次项目中我们需要传递一个语言参数,这个参数在系统中有三个值:中文、英文、和繁体中文,在数据库存的是相对应的Integer值(别问我为啥还要整个小写,前端规范是小写,后段枚举规范用大写,没发用spring自带的枚举转换器。)@Getter@RequiredArgsConstructorpublicenu
- 前端规范 - 前端广义安全规范
loulanyijian
前端规范#前端安全前端代码规范web安全
前言不仅仅局限为前端老生常谈的xss、csrf等典型性前端安全问题更多的,是前端面临的整体的一些合规、风控、信息泄露等一系列问题xss防御首先还是xss,如果你现在不是使用老掉牙的jQueryzepto之类的框架,就简单多了对vue来说,谨慎或不使用v-html即可对react来说,谨慎或不使用dangerouslySetInnerHTML即可开启全站https这个无需多言,现在全站https是标
- 在水端最后的日子...
sowcvvfrasx
一眨眼,从萧山那家皮包公司出来到现在已经过了5个月了,相应的我觉得在这边自己学到了很多,对前端规范有了很大的提高,了解到了真正去做前端应该是什么样的规范,而且在这里我觉得跟着其他两位兄弟,跟着他们学到了不少东西,现在你要明确下来下一段时间的规划:1首先是将自己的财政赤字控制在2万元左右(这个月公司一发,额外的6000块公积金,再额外的卡我一个月试用期,我觉得自己应该是能够将财政赤字控制在2万元左右
- 项目git commit时卡主不良代码:husky让Git检查代码规范化工作
周陆军的个人博客
开发工具githusklint-staged代码规范化
看完《前端规范之Git工作流规范(Husky+Commitlint+Lint-staged)前端规范之Git工作流规范(Husky+Commitlint+Lint-staged)-Yellow_ice-博客园》,再次修改本文团队人一多,提交一多,还是要对备注加以区分,好快速找到变更点。这时候就需要对每次提交,需要输入message,对提交的备注进行规范化处理代码规范落地难:归根结底在于需要工具去强
- 前端规范手册
laikidd
规范目的为提高团队协作效率,便于后台人员添加功能及前端后期优化维护,输出高质量的文档,特制订此文档。文件规范文件命名规则文件名称统一用小写的英文字母、数字和下划线的组合,其中不得包含汉字、空格和特殊字符;命名原则的指导思想一是使得你自己和工作组的每一个成员能够方便的理解每一个文件的意义,二是当我们在文件夹中使用“按名称排例”的命令时,同一种大类的文件能够排列在一起,以便我们查找、修改、替换、计算负
- 前端提交规范 ESLint + Prettier + husky + lint-staged
上官孜然
前端
如何统一代码风格,规范提交呢?推荐使用前端规范全家桶ESLint+Prettier+husky+lint-staged。eslint(github.com/eslint/esli…)JavaScript代码检测工具,检测并提示错误或警告信息prettier(github.com/prettier/pr…)代码自动化格式化工具,更好的代码风格效果husky(github.com/typicode/h
- 2023最新前端规范
虾十一
前端javascriptVue前端javascriptvue.js
2023最新前端规范【一】必要一、引用二、对象三、数组四、字符五、属性六、变量七、比较运算符和等号八、注释九、类型转换和强制类型转换十、命名规范十一、VUE相关规范1)组件2).js/.ts文件命名规范3)view目录下的文件4).less文件命名规范5)其他细则【二】推荐一、解构二、循环(迭代器)三、控制语句四、对象【一】必要一、引用使用const定义你的所有引用;避免使用var。为什么?这样能
- 前端规范之-利用commitlint与husky规范git commit message
liujianya547733727
git
pre本文主要讲解如何在gitcommit-m"xxx"时检查message是否符合规范。1、Commitlint是什么?原文:helpsyourteamadheretoacommitconvention.Bysupportingnpm-installedconfigurationsitmakessharingofcommitconventionseasy.说明:可以检查gitcommit-m"x
- 前端的规范
Yxj-5211314
前端
假如团队中的小伙伴在提交代码时没有遵循规范要求,只写了一个"fix"或"update,这会给其他小伙伴造成困扰,不得不花时间查看代码和推测逻辑。不仅会浪费了时间和精力,可能会导致项目以下问题:可读性差维护困难变更历史不透明自动化工具的不兼容如何统一代码风格,规范提交呢?推荐使用前端规范全家桶ESLint+Prettier+husky+lint-staged。下面我会逐个讲解每个依赖包使用步骤,文末
- 面试问到SASS高级语法在项目中的应用该如何回答?仿element-ui的使用方式。
天铭_Yagami
亲身经历sass基本语法想必大家都能掌握,但本身我们的项目复杂度不够高,小型公司又没有自己的前端规范,基本上想怎么写就怎么写。导致我们长时间做一些低级的dirtywork。那些高级语法更是从未用到。本文主旨在于例举一些较为常用语法,以及本人在项目中的使用,意在与各位初级工程师互相交流学习,大佬就请绕道吧。BEM规范太长不看版本:BEM就是element-ui所使用的css命名规范。本文例子也是仿照
- 前端规范化标准
红尘灬客栈
1.为什么要有规范化标准软件开发需要多人协同不同开发者具有不同的编码习惯和喜好不同的喜好增加项目维护成本每个项目或者团队需要明确统一的标准2.哪里需要规范化标准代码、文档、甚至是提交日志开发过程中人为编写的成果物代码标准化规范最为重要3.实施规范化的方法编码前人为的标准约定通过工具实现Lint常见的规范化实现方式ESLint工具使用定制ESLint校验规则ESLint对TypeScript的支持E
- 前后端交互与分离的原因和选型
AI信仰者
一、为什么要做前后端分离1、从维护侧看:1)业务逻辑复杂,充斥着很多明眼不可见的业务。导致更改bug很容易引发其他的bug。2)代码巨长无比,可读性差。3)代码结构性差、分层模糊,逻辑层的代码充斥在View层中。找代码的时间占据解决bug的大部分时间。4)前端尚处在刀耕火种的年代,前端规范差、压缩混淆不彻底,难以适应新的浏览器渲染技术。从性能侧看:单一请求,往往读取比页面所需要多得多的数据。频繁的
- javascript知识点汇总(基础很全,文章最后还有思维导图)
淳淳在努力
htmlcssjs的课堂笔记htmlhtml5cssjavascript
目录前端规范:一、javascript基础1.什么是js:2.主要功能:3.js最初的目的:4.js应用场景5.js和html、css的区别二、js初次体验js的书写位置(1)写在标签上的,行内(不推荐使用)(2)写在script标签中(常用)(3)写在外部js文件中,在页面中引入(常用)三、变量1.什么是变量?2.为什么要使用变量?3.怎么去使用变量?4.变量赋值5.变量的命名规范(重点,需要背
- 前端规范说明
前端
目录1.设计规范1.1.目录设计1.2.变量命名1.3.界面布局1.4.设计模式1.5.文档设计2.编码规范3.插件使用(以vscode为例)4.参考资源5.总结写在前面1.设计规范1.1.目录设计目录结构这一块设计参照vue脚手架做为一个参考的基础,主要还是要注意命名和结构组织管理。项目命名全部采用小写方式,以中划线分隔。正例:mall-management-system/mall_manage
- 前端规范之css
lihaiting
1.每个样式属性后(必须)加";"方便压缩工具"断句"。2.Class命名中(禁止)出现大写字母,(必须)采用”-“对class中的字母分隔,如:正确的写法.header-title{font-weight:bold;}不推荐的写法.headerTitle{font-weight:bold;}用"-"隔开比使用驼峰是更加清晰。产品线-产品-模块-子模块,命名的时候也可以使用这种方式。3.空格的使用
- 前端规范总结
weixin_189
Web前端
前端规范大总结规范目的:为了提高工作效率,便于后台人员添加功能及前端后期优化维护,输出高质量的文档,在网站建设中,使结构更加清晰,代码简明有序,有一个更好的前端架构。规范基本准则:符合web标准,使用具有语义的标签,使结构、表现、行为分离,兼容性优良。页面性能优化,代码简洁、明了、有序,尽可能的减少服务器的负载,保证最快的解析速度。一、文件规范1.1HTML部分1.1.1建包问题文件均归档至约定的
- springmvc 下 freemarker页面枚举的遍历输出
杨白白
enumfreemarker
spring mvc freemarker 中遍历枚举
1枚举类型有一个本地方法叫values(),这个方法可以直接返回枚举数组。所以可以利用这个遍历。
enum
public enum BooleanEnum {
TRUE(Boolean.TRUE, "是"), FALSE(Boolean.FALSE, "否");
- 实习简要总结
byalias
工作
来白虹不知不觉中已经一个多月了,因为项目还在需求分析及项目架构阶段,自己在这段
时间都是在学习相关技术知识,现在对这段时间的工作及学习情况做一个总结:
(1)工作技能方面
大体分为两个阶段,Java Web 基础阶段和Java EE阶段
1)Java Web阶段
在这个阶段,自己主要着重学习了 JSP, Servlet, JDBC, MySQL,这些知识的核心点都过
了一遍,也
- Quartz——DateIntervalTrigger触发器
eksliang
quartz
转载请出自出处:http://eksliang.iteye.com/blog/2208559 一.概述
simpleTrigger 内部实现机制是通过计算间隔时间来计算下次的执行时间,这就导致他有不适合调度的定时任务。例如我们想每天的 1:00AM 执行任务,如果使用 SimpleTrigger,间隔时间就是一天。注意这里就会有一个问题,即当有 misfired 的任务并且恢复执行时,该执行时间
- Unix快捷键
18289753290
unixUnix;快捷键;
复制,删除,粘贴:
dd:删除光标所在的行 &nbs
- 获取Android设备屏幕的相关参数
酷的飞上天空
android
包含屏幕的分辨率 以及 屏幕宽度的最大dp 高度最大dp
TextView text = (TextView)findViewById(R.id.text);
DisplayMetrics dm = new DisplayMetrics();
text.append("getResources().ge
- 要做物联网?先保护好你的数据
蓝儿唯美
数据
根据Beecham Research的说法,那些在行业中希望利用物联网的关键领域需要提供更好的安全性。
在Beecham的物联网安全威胁图谱上,展示了那些可能产生内外部攻击并且需要通过快速发展的物联网行业加以解决的关键领域。
Beecham Research的技术主管Jon Howes说:“之所以我们目前还没有看到与物联网相关的严重安全事件,是因为目前还没有在大型客户和企业应用中进行部署,也就
- Java取模(求余)运算
随便小屋
java
整数之间的取模求余运算很好求,但几乎没有遇到过对负数进行取模求余,直接看下面代码:
/**
*
* @author Logic
*
*/
public class Test {
public static void main(String[] args) {
// TODO A
- SQL注入介绍
aijuans
sql注入
二、SQL注入范例
这里我们根据用户登录页面
<form action="" > 用户名:<input type="text" name="username"><br/> 密 码:<input type="password" name="passwor
- 优雅代码风格
aoyouzi
代码
总结了几点关于优雅代码风格的描述:
代码简单:不隐藏设计者的意图,抽象干净利落,控制语句直截了当。
接口清晰:类型接口表现力直白,字面表达含义,API 相互呼应以增强可测试性。
依赖项少:依赖关系越少越好,依赖少证明内聚程度高,低耦合利于自动测试,便于重构。
没有重复:重复代码意味着某些概念或想法没有在代码中良好的体现,及时重构消除重复。
战术分层:代码分层清晰,隔离明确,
- 布尔数组
百合不是茶
java布尔数组
androi中提到了布尔数组;
布尔数组默认的是false, 并且只会打印false或者是true
布尔数组的例子; 根据字符数组创建布尔数组
char[] c = {'p','u','b','l','i','c'};
//根据字符数组的长度创建布尔数组的个数
boolean[] b = new bool
- web.xml之welcome-file-list、error-page
bijian1013
javaweb.xmlservleterror-page
welcome-file-list
1.定义:
<welcome-file-list>
<welcome-file>login.jsp</welcome>
</welcome-file-list>
2.作用:用来指定WEB应用首页名称。
error-page1.定义:
<error-page&g
- richfaces 4 fileUpload组件删除上传的文件
sunjing
clearRichfaces 4fileupload
页面代码
<h:form id="fileForm"> <rich:
- 技术文章备忘
bit1129
技术文章
Zookeeper
http://wenku.baidu.com/view/bab171ffaef8941ea76e05b8.html
http://wenku.baidu.com/link?url=8thAIwFTnPh2KL2b0p1V7XSgmF9ZEFgw4V_MkIpA9j8BX2rDQMPgK5l3wcs9oBTxeekOnm5P3BK8c6K2DWynq9nfUCkRlTt9uV
- org.hibernate.hql.ast.QuerySyntaxException: unexpected token: on near line 1解决方案
白糖_
Hibernate
文章摘自:http://blog.csdn.net/yangwawa19870921/article/details/7553181
在编写HQL时,可能会出现这种代码:
select a.name,b.age from TableA a left join TableB b on a.id=b.id
如果这是HQL,那么这段代码就是错误的,因为HQL不支持
- sqlserver按照字段内容进行排序
bozch
按照内容排序
在做项目的时候,遇到了这样的一个需求:
从数据库中取出的数据集,首先要将某个数据或者多个数据按照地段内容放到前面显示,例如:从学生表中取出姓李的放到数据集的前面;
select * fro
- 编程珠玑-第一章-位图排序
bylijinnan
java编程珠玑
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;
import java.util.Random;
public class BitMapSearch {
- Java关于==和equals
chenbowen00
java
关于==和equals概念其实很简单,一个是比较内存地址是否相同,一个比较的是值内容是否相同。虽然理解上不难,但是有时存在一些理解误区,如下情况:
1、
String a = "aaa";
a=="aaa";
==> true
2、
new String("aaa")==new String("aaa
- [IT与资本]软件行业需对外界投资热情保持警惕
comsci
it
我还是那个看法,软件行业需要增强内生动力,尽量依靠自有资金和营业收入来进行经营,避免在资本市场上经受各种不同类型的风险,为企业自主研发核心技术和产品提供稳定,温和的外部环境...
如果我们在自己尚未掌握核心技术之前,企图依靠上市来筹集资金,然后使劲往某个领域砸钱,然
- oracle 数据块结构
daizj
oracle块数据块块结构行目录
oracle 数据块是数据库存储的最小单位,一般为操作系统块的N倍。其结构为:
块头--〉空行--〉数据,其实际为纵行结构。
块的标准大小由初始化参数DB_BLOCK_SIZE指定。具有标准大小的块称为标准块(Standard Block)。块的大小和标准块的大小不同的块叫非标准块(Nonstandard Block)。同一数据库中,Oracle9i及以上版本支持同一数据库中同时使用标
- github上一些觉得对自己工作有用的项目收集
dengkane
github
github上一些觉得对自己工作有用的项目收集
技能类
markdown语法中文说明
回到顶部
全文检索
elasticsearch
bigdesk elasticsearch管理插件
回到顶部
nosql
mapdb 支持亿级别map, list, 支持事务. 可考虑做为缓存使用
C
- 初二上学期难记单词二
dcj3sjt126com
englishword
dangerous 危险的
panda 熊猫
lion 狮子
elephant 象
monkey 猴子
tiger 老虎
deer 鹿
snake 蛇
rabbit 兔子
duck 鸭
horse 马
forest 森林
fall 跌倒;落下
climb 爬;攀登
finish 完成;结束
cinema 电影院;电影
seafood 海鲜;海产食品
bank 银行
- 8、mysql外键(FOREIGN KEY)的简单使用
dcj3sjt126com
mysql
一、基本概念
1、MySQL中“键”和“索引”的定义相同,所以外键和主键一样也是索引的一种。不同的是MySQL会自动为所有表的主键进行索引,但是外键字段必须由用户进行明确的索引。用于外键关系的字段必须在所有的参照表中进行明确地索引,InnoDB不能自动地创建索引。
2、外键可以是一对一的,一个表的记录只能与另一个表的一条记录连接,或者是一对多的,一个表的记录与另一个表的多条记录连接。
3、如
- java循环标签 Foreach
shuizhaosi888
标签java循环foreach
1. 简单的for循环
public static void main(String[] args) {
for (int i = 1, y = i + 10; i < 5 && y < 12; i++, y = i * 2) {
System.err.println("i=" + i + " y="
- Spring Security(05)——异常信息本地化
234390216
exceptionSpring Security异常信息本地化
异常信息本地化
Spring Security支持将展现给终端用户看的异常信息本地化,这些信息包括认证失败、访问被拒绝等。而对于展现给开发者看的异常信息和日志信息(如配置错误)则是不能够进行本地化的,它们是以英文硬编码在Spring Security的代码中的。在Spring-Security-core-x
- DUBBO架构服务端告警Failed to send message Response
javamingtingzhao
架构DUBBO
废话不多说,警告日志如下,不知道有哪位遇到过,此异常在服务端抛出(服务器启动第一次运行会有这个警告),后续运行没问题,找了好久真心不知道哪里错了。
WARN 2015-07-18 22:31:15,272 com.alibaba.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(84)
- JS中Date对象中几个用法
leeqq
JavaScriptDate最后一天
近来工作中遇到这样的两个需求
1. 给个Date对象,找出该时间所在月的第一天和最后一天
2. 给个Date对象,找出该时间所在周的第一天和最后一天
需求1中的找月第一天很简单,我记得api中有setDate方法可以使用
使用setDate方法前,先看看getDate
var date = new Date();
console.log(date);
// Sat J
- MFC中使用ado技术操作数据库
你不认识的休道人
sqlmfc
1.在stdafx.h中导入ado动态链接库
#import"C:\Program Files\Common Files\System\ado\msado15.dll" no_namespace rename("EOF","end")2.在CTestApp文件的InitInstance()函数中domodal之前写::CoIniti
- Android Studio加速
rensanning
android studio
Android Studio慢、吃内存!启动时后会立即通过Gradle来sync & build工程。
(1)设置Android Studio
a) 禁用插件
File -> Settings... Plugins 去掉一些没有用的插件。
比如:Git Integration、GitHub、Google Cloud Testing、Google Cloud
- 各数据库的批量Update操作
tomcat_oracle
javaoraclesqlmysqlsqlite
MyBatis的update元素的用法与insert元素基本相同,因此本篇不打算重复了。本篇仅记录批量update操作的
sql语句,懂得SQL语句,那么MyBatis部分的操作就简单了。 注意:下列批量更新语句都是作为一个事务整体执行,要不全部成功,要不全部回滚。
MSSQL的SQL语句
WITH R AS(
SELECT 'John' as name, 18 as
- html禁止清除input文本输入缓存
xp9802
input
多数浏览器默认会缓存input的值,只有使用ctl+F5强制刷新的才可以清除缓存记录。如果不想让浏览器缓存input的值,有2种方法:
方法一: 在不想使用缓存的input中添加 autocomplete="off"; eg: <input type="text" autocomplete="off" name