上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 125 下一页
摘要: 引用类型参数的传递,调用方的变量,和接收方的参数变量,地址指向的是同一个对象。 双方任意一方对这个对象的修改,都会影响对方 myself:这样也不用像php加&,说变就跟着变,会不会很麻烦,出现一些隐匿的bug ``` public class ImoocStudent { public void 阅读全文
posted @ 2023-05-20 18:19 盘思动 阅读(29) 评论(0) 推荐(0) 编辑
摘要: ``` public class ImoocStudent { public boolean contains(int[] arr,int element){ boolean result = false; for(int value : arr){ if(value == element){ re 阅读全文
posted @ 2023-05-20 11:02 盘思动 阅读(5) 评论(0) 推荐(0) 编辑
摘要: ![](https://img2023.cnblogs.com/blog/1202393/202305/1202393-20230520104705942-382630314.png) 阅读全文
posted @ 2023-05-20 10:47 盘思动 阅读(48) 评论(0) 推荐(0) 编辑
摘要: public class ImoocStudent { public static void main(String[] args){ int i1 = 2,i2 = 4; int i3 = i1 / i2; System.out.println("整型2除以整型4的结果为:" + i3); flo 阅读全文
posted @ 2023-05-19 09:52 盘思动 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 1.其实是个组件页面,移过来就行了。 2.原有组件中,可视区域和截图结果区域的长宽是一样的,所以需要调整一下; 3.因为剪切图片,是在一个单独页面实现的.所以pages.json中需要加上剪切的页面路径; pages.json { "path": "components/u-avatar-cropp 阅读全文
posted @ 2023-05-15 08:51 盘思动 阅读(91) 评论(0) 推荐(0) 编辑
摘要: u-button组件里:customStyle="样式数据名" 在data里申明样式数据名,形式为对象,注意值要加引号,且有-的只要改为驼峰命名如border-Radius 例如: //html <u-button :customStyle="btnGetCode"></u-button> //js 阅读全文
posted @ 2023-05-13 22:01 盘思动 阅读(2136) 评论(0) 推荐(0) 编辑
摘要: <template> <view class="imgcon"> <image src="/static/music.png" :class="[muteBgMusic ? '' : 'music']" @click="playMusic" mode="aspectFill" ></image> < 阅读全文
posted @ 2023-05-12 00:55 盘思动 阅读(577) 评论(0) 推荐(0) 编辑
摘要: 通过改变current,自动切换 <template> <view class="page"> <swiper class="swiper" :vertical="true" :current="current" @tap="switchNext"> <swiper-item> <view clas 阅读全文
posted @ 2023-05-11 23:20 盘思动 阅读(852) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <style> .con{ width:100%; height:400px; overflow: hidden; background-color: blanchedalmond; } .dong{ width:100px; height 阅读全文
posted @ 2023-05-11 16:26 盘思动 阅读(76) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Marquee标签</title> <style> .main{text-align:center;} .marq{padding-top:30px;padding-bottom: 阅读全文
posted @ 2023-05-11 09:55 盘思动 阅读(85) 评论(0) 推荐(0) 编辑
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 125 下一页