丁同亚的博客
夺朱非正色
摘要: 终于找回账号和密码啦,以后就用这个写。 阅读全文
posted @ 2024-11-22 10:45 丁同亚的博客 阅读(16) 评论(0) 推荐(0)
摘要: 内网开发不要用 cnpm 下载 内网开发node_module复制或压缩打包放进去,可能会缺包 Cannont find module ‘xxx’ 原因: cnpm下载的很多包是快捷方式 解决: 可以用 cnpm install --by=npm 或yarn package.json 里的依赖包可能 阅读全文
posted @ 2024-11-22 10:45 丁同亚的博客 阅读(23) 评论(0) 推荐(0)
摘要: 模拟实现:Bean对象获取 点击查看代码 public class MyBean{ id clazz } public interface BeanFactory{ getBean(id) } ClassPathXmlApplication implement BeanFactory{ list<M 阅读全文
posted @ 2021-12-24 15:45 丁同亚的博客 阅读(279) 评论(0) 推荐(0)
摘要: 一个Java源文件可以包含多个类的定义,但只能定义一个public类,且public类名必须与文件名一致。如果要定义多个public类,必须拆到多个Java源文件中 Java内建的package机制是为了避免class命名冲突; 自动导入的是java.lang包,但类似java.lang.refle 阅读全文
posted @ 2021-12-16 14:33 丁同亚的博客 阅读(38) 评论(0) 推荐(0)
摘要: Vue3.0中的一个新的配置项,值为一个函数 setup是所有Composition API的表演舞台 Vue3建议组件中所用到的所有数据方法等,均要在setup中配置 setup函数的两种返回值 若返回一个对象,则对象中的属性,方法,在模板中均可直接使用!!! 若返回一个渲染函数,则可以自定义渲染 阅读全文
posted @ 2021-10-02 17:09 丁同亚的博客 阅读(170) 评论(0) 推荐(0)
摘要: /vue.config.js module.exports = { devServer: { proxy: { //配置跨域 "/api": { target: "http://127.0.0.1:7001", ws: true, changOrigin: true, //允许跨域 // pathR 阅读全文
posted @ 2021-09-30 10:56 丁同亚的博客 阅读(77) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <style> body { width: 100vw; height: 100vh; margin: 0; box-sizing: border-box; } .container { width: 400px; ba 阅读全文
posted @ 2021-09-15 10:19 丁同亚的博客 阅读(179) 评论(0) 推荐(0)
摘要: npm run dev 出错 解决办法:运行node ./node_modules/esbuild/install.js 阅读全文
posted @ 2021-07-19 12:22 丁同亚的博客 阅读(139) 评论(0) 推荐(0)
摘要: class Watcher { constructor(obj, key, cb) { // Watcher构造函数,先把当前watcher放到一个地方 window.curWatcher = this // 触发getter,在getter里就可以将先前放好的watcher拿出来放到其dep中 t 阅读全文
posted @ 2021-06-23 18:42 丁同亚的博客 阅读(54) 评论(0) 推荐(0)
摘要: let和const 暂时性死区 变量提升:let声明的变量初始化不进行变量提升,var声明的变量初始化为undefined。 let a = 1 { console.log(a); let a = 2 } //ReferenceError: Cannot access 'a' before init 阅读全文
posted @ 2021-06-11 11:26 丁同亚的博客 阅读(53) 评论(0) 推荐(0)