1. 在ready周期函数(vue,页面渲染后)后执行
window.onload = function(){//跳转到图片的新窗口$('.headImg').on('click', function () { console.log('点击事件触发') })
}

2.文件上传和数据同时可以上传上来

 public FileRes uploadImage(@RequestPart("file") MultipartFile file,@RequestParam String uploadPath) {//顺序不能颠倒//requestBody是指整个传进来的数据是一个json对象格式//上传文件不能用@requestBoby,//@RequestParam是上传单个测试的,非常方便}

3.bootstrapinput上传文件很方便

4.如果form元素里面有不需要发送的元素则 disable禁用他

$('.projectfile').attr("disabled","")

5.如果 函数执行的顺序没有生命周期 ,放到一个函数后调用另外一个函数即可

6.后端专门返回数据是最实在的

7.得到路径中的文件名和后缀

 // 从路径得到资源的名字和后缀String.prototype.replaceAll = function(s1, s2) {return this.replace(new RegExp(s1, "gm"), s2);} buyImageAddress=res;console.log(buyImageAddress)fullPath = buyImageAddress;buyImageAddressOnlyNameAndSuffix = '';fullPath = fullPath.replaceAll('/', '\\');console.log(fullPath);pos = fullPath.lastIndexOf('\\');buyImageAddressOnlyNameAndSuffix = fullPath.substr(pos+1);console.log(buyImageAddressOnlyNameAndSuffix);

8.select2的数据加到请求中

 function submitHandler() {if ($.validate.form()) {var data=$('#form-buy-edit').serializeArray();var advantage = $.form.selectSelects("advantage");data.push({"name": "advantages", "value": advantage});$('.projectfile').attr("disabled","")$.operate.save(prefix + "/edit", data);}}

9.要测试还是main方法实在,不用重启

10.idea配置springboot启动多个service
//在 .idea的workplace文件夹改配置文件

<?xml version="1.0" encoding="UTF-8"?>
<project version="4"><component name="AutoImportSettings"><option name="autoReloadType" value="SELECTIVE" /></component><component name="BranchesTreeState"><expand><path><item name="ROOT" type="e8cecc67:BranchNodeDescriptor" /><item name="LOCAL_ROOT" type="e8cecc67:BranchNodeDescriptor" /></path></expand><select /></component><component name="ChangeListManager"><list default="true" id="7b18c1d0-e9e7-433a-b49f-4d9054e0be7c" name="Default Changelist" comment="" /><option name="SHOW_DIALOG" value="false" /><option name="HIGHLIGHT_CONFLICTS" value="true" /><option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /><option name="LAST_RESOLUTION" value="IGNORE" /></component><component name="ProjectLevelVcsManager" settingsEditedManually="true" /><component name="PropertiesComponent"><property name="RequestMappingsPanelOrder0" value="0" /><property name="RequestMappingsPanelOrder1" value="1" /><property name="RequestMappingsPanelWidth0" value="75" /><property name="RequestMappingsPanelWidth1" value="75" /><property name="node.js.path.for.package.tslint" value="project" /><property name="node.js.selected.package.tslint" value="(autodetect)" /></component><component name="RunDashboard"><option name="configurationTypes"><set><option value="SpringBootApplicationConfigurationType" /></set></option></component><component name="RunManager"><configuration default="true" type="ArquillianJUnit" factoryName="" nameIsGenerated="true"><option name="arquillianRunConfiguration"><value><option name="containerStateName" value="" /></value></option><option name="TEST_OBJECT" value="class" /><method v="2"><option name="Make" enabled="true" /></method></configuration><configuration name="SpringcloudConsumerDept80Application" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot" temporary="true" nameIsGenerated="true"><module name="springcloud-consumer-dept-80" /><extension name="coverage"><pattern><option name="PATTERN" value="top.jamsee.demo.*" /><option name="ENABLED" value="true" /></pattern></extension><option name="SPRING_BOOT_MAIN_CLASS" value="top.jamsee.demo.SpringcloudConsumerDept80Application" /><method v="2"><option name="Make" enabled="true" /></method></configuration><recent_temporary><list><item itemvalue="Spring Boot.SpringcloudConsumerDept80Application" /></list></recent_temporary></component><component name="TaskManager"><servers /></component><component name="Vcs.Log.Tabs.Properties"><option name="oldMeFiltersMigrated" value="true" /></component><component name="WindowStateProjectService"><state width="1493" height="210" key="GridCell.Tab.0.bottom" timestamp="1654156566435"><screen x="0" y="0" width="1536" height="824" /></state><state width="1493" height="210" key="GridCell.Tab.0.bottom/0.0.1536.824@0.0.1536.824" timestamp="1654156566435" /><state width="1493" height="210" key="GridCell.Tab.0.center" timestamp="1654156566435"><screen x="0" y="0" width="1536" height="824" /></state><state width="1493" height="210" key="GridCell.Tab.0.center/0.0.1536.824@0.0.1536.824" timestamp="1654156566435" /><state width="1493" height="210" key="GridCell.Tab.0.left" timestamp="1654156566435"><screen x="0" y="0" width="1536" height="824" /></state><state width="1493" height="210" key="GridCell.Tab.0.left/0.0.1536.824@0.0.1536.824" timestamp="1654156566435" /><state width="1493" height="210" key="GridCell.Tab.0.right" timestamp="1654156566435"><screen x="0" y="0" width="1536" height="824" /></state><state width="1493" height="210" key="GridCell.Tab.0.right/0.0.1536.824@0.0.1536.824" timestamp="1654156566435" /><state width="1493" height="210" key="GridCell.Tab.1.bottom" timestamp="1654156566435"><screen x="0" y="0" width="1536" height="824" /></state><state width="1493" height="210" key="GridCell.Tab.1.bottom/0.0.1536.824@0.0.1536.824" timestamp="1654156566435" /><state width="1493" height="210" key="GridCell.Tab.1.center" timestamp="1654156566435"><screen x="0" y="0" width="1536" height="824" /></state><state width="1493" height="210" key="GridCell.Tab.1.center/0.0.1536.824@0.0.1536.824" timestamp="1654156566435" /><state width="1493" height="210" key="GridCell.Tab.1.left" timestamp="1654156566435"><screen x="0" y="0" width="1536" height="824" /></state><state width="1493" height="210" key="GridCell.Tab.1.left/0.0.1536.824@0.0.1536.824" timestamp="1654156566435" /><state width="1493" height="210" key="GridCell.Tab.1.right" timestamp="1654156566435"><screen x="0" y="0" width="1536" height="824" /></state><state width="1493" height="210" key="GridCell.Tab.1.right/0.0.1536.824@0.0.1536.824" timestamp="1654156566435" /></component>
</project>

01.爱芳地产项目小程序全栈项目经验(已上线)相关推荐

  1. 07.爱芳地产项目小程序全栈项目经验(已上线)

    1.请求转发找不到controller,找上一个页面的controller即可 2.redis只能优化一部分比如byid,或者查询所有数据,过多也会卡,不能随便优化 如果查询出来所有数据的话,那需要, ...

  2. 02.爱芳地产项目小程序全栈项目经验(已上线)

    1.List转为ArrayList不能强制转换(多个图片字符串转list) String headPicNoCharacter = StringUtils.strip(buyDetail1.getHe ...

  3. 13.爱芳地产项目小程序全栈项目经验之uniapp

    1-必须先修改后赋值(就是加一个中间变量接收原来的数据,然后修改这个数据,后赋值给vue的data数据) 2.除第一个元素外的元素 :not(:first-child) 3.多层for循环,要变量全部 ...

  4. 签到java小程序代码_微信小程序全栈项目:签到打卡小程序 + 后端实现

    [实例简介] 签到打卡小程序 + 后端实现 : 后端是 springmvc + mybatis + mysql实现 [实例截图] [核心代码] Calendar `-- Calendar |-- Ca ...

  5. 微信步数日历打卡小程序全栈项目源码+视频教程

    一.视频教程目录: 微信小程序+JavaWeb SSM框架+MySql数据库 项目演示 1.项目源码提供,如何使用 1)软件.源码下载 2)如何配置.使用(前提安装好了开发工具和环境配置) 3)项目演 ...

  6. 11.爱芳地产项目小程序之uniapp经验

    1.只有居中用 margin: 10rpx auto; //代表margin-left和margin-right都是auto//margin-left:auto; 代表里子容器可以到父容器的最左边 字 ...

  7. 3.1【微信小程序全栈开发课程】在本地搭建后端开发环境

    第二章将前端页面的框架基本搭建好了,第三章,我们来做登录功能,登录功能需要在后端获取到用户信息,返回到前端.所以先来搭建后端开发环境 1.后端开发环境介绍 我们的项目用的是前后端分离开发 前端可以理解 ...

  8. angularjs全栈开发知乎_1-4【微信小程序全栈开发课程】原生小程序框架介绍

    1.打开小程序目录 打开微信开发者工具,我们上一节新建的项目,我圈出来的这个地方就是小程序的目录结构(如果你那里没有显示,可以点击左上方的编辑器来显示) 2.原生小程序框架介绍 给大家画了一张图,重要 ...

  9. 活久见!月薪30k的小程序全栈开发到底有多难?

    10年前,公司的标配是门户网站,造就了一批网站工作室.随着移动互联网大潮兴起,App又成了企业标配,IOS和Android开发赚的盆满钵满.然而App导致的手机内存告急,无止尽的信息推送,让微信小程序 ...

最新文章

  1. 211.Alpha多样性箱线图(样章,11图2视频)
  2. mac装windows遇到的问题总结
  3. 【Android 组件化】路由组件 ( 使用 JavaPoet 生成路由表类 )
  4. 【计算摄影】计算机如何学会自动裁剪图片(自动构图)?
  5. kaggle中的MAP理解
  6. VTK:图片之ImageMapper
  7. 机器学习算法Python实现:gensim里的similarities文本相似度计算
  8. IntelliJ IDEA for Mac 如何创建普通的Java项目_创建项目_新建项目
  9. php sql语句过滤,php如何做sql过滤
  10. springboot redis shiro 实现 单点登录
  11. 充分条件反过来是必要条件吗_“充分必要条件”引发的现实思考
  12. LeetCode 157. 用 Read4 读取 N 个字符
  13. python学习之最常用的内置函数
  14. android fragment 设置透明,Android透明DialogFragment
  15. Sharding-JDBC简介_Sharding-Sphere,Sharding-JDBC分布式_分库分表工作笔记006
  16. spark pair RDD
  17. java8编程开发入门 李兴华_李兴华系列--JAVA详解视频(jdk1.8)及项目实战教程
  18. 微服务调用Ribbon负载均衡、Feign的使用
  19. Jenkins基础入门-9-构建触发器之项目之间依赖关系
  20. 怎样找到优质的APP推广渠道

热门文章

  1. 51NOD 1548 欧姆诺姆和糖果
  2. c语言sigsegv,(转载)如何避免 SIGSEGV
  3. 三菱FX3U与3台欧姆龙E5CC温控器 通讯控制程序
  4. 2021辽宁省赛——H制造游戏币
  5. mobiscroll初始化数据添加年月日
  6. python plc fx5u_三菱PLCFX5U模块专用指令有几个大类能详解吗?
  7. libnuma.so.1()(64bit) is needed by mysql-community-server-5.7.9-1.el6.x86_64
  8. 算法衡量auc_AUC理解
  9. scanf和putchar
  10. socketio连接失败,nginx返回502 connect failed (111: Connection refused)问题解决