上一页 1 2 3 4 5 6 7 8 9 10 ··· 97 下一页
摘要: vue2 jsx简单例子 <script> export default { name: "swipermoban", data() { return {}; }, render(h) { console.log(h); return (<div>1111111</div>); }, }; </sc 阅读全文
posted @ 2022-06-04 10:50 newmiracle宇宙 阅读(116) 评论(0) 推荐(0) 编辑
摘要: vue 动态渲染自定义组件的方法 用v-if 最简单 如果有事件 大不了多写几个 <div v-tous="ss" v-if="0"></div> <div v-if="1"></div> 阅读全文
posted @ 2022-05-31 17:31 newmiracle宇宙 阅读(63) 评论(0) 推荐(0) 编辑
摘要: webpack 设置全局访问js对象的方法 比方说pixi import $ from 'jquery' import * as PIXI from 'pixi.js' if (process.env.NODE_ENV == "development") { window.PIXI = PIXI; 阅读全文
posted @ 2022-05-30 09:11 newmiracle宇宙 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 目前唯一不足就是不能动态修改shader。。。 1创建地面 const gravity = new b2Vec2(0, 10); world = new b2World(gravity); const bd_ground = new b2BodyDef(); const ground = world 阅读全文
posted @ 2022-05-23 09:12 newmiracle宇宙 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 有些情况下 比如wasm 都打包失败 这个时候就要跳过webpack打包 我这里用动态加载js方法(不要用import) 这个方法比较实用 因为很多情况下都需要DOM元素加载完再执行 var head = document.getElementsByTagName('head')[0]; var s 阅读全文
posted @ 2022-05-18 16:16 newmiracle宇宙 阅读(623) 评论(0) 推荐(0) 编辑
摘要: golang 协程运行流程 package main import ( "testing" // "github.com/gwpp/tinify-go/tinify" "fmt" "time" ) func sss(){ time.Sleep(time.Second) fmt.Println("44 阅读全文
posted @ 2022-05-17 17:16 newmiracle宇宙 阅读(59) 评论(0) 推荐(0) 编辑
摘要: centos软连接 设置php多版本 ln -s /usr/local/php7.3/bin/php /usr/bin/php73 又箭头说明成功了 然后运行下php73 -v 是不是就出现PHP版本了 阅读全文
posted @ 2022-05-17 15:57 newmiracle宇宙 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 关于vue-awesome-swiper和swiper的作用 vue-awesome-swiper是提供组件化用的 swiper 也有组件 但是用不了 所以用vue-awesome-swiper代替了 swiper只提供一些交互功能 阅读全文
posted @ 2022-05-17 15:03 newmiracle宇宙 阅读(161) 评论(0) 推荐(0) 编辑
摘要: javascript gsap 动画2种常用写法 import gsap from "gsap"; gsap.to(".ball", { keyframes: { "0%": { yPercent: 0, scaleX: 1, scaleY: 1 }, "7%": { yPercent: 5, sc 阅读全文
posted @ 2022-05-17 10:44 newmiracle宇宙 阅读(141) 评论(0) 推荐(0) 编辑
摘要: webpack更新原理 每次改代码 除了直接改组件里面的东西 改引用的js store都会重新刷新页面 体验真心不好 阅读全文
posted @ 2022-05-13 10:34 newmiracle宇宙 阅读(20) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 97 下一页