###1.Xaml部分 <Grid> <ListBox Name="lbMain" ItemsSource="{Binding CollectionModelFile}"> <ListBox.ItemTemplate> <DataTemplate> <StackPanel Height="30" O ...
监听复选框 监听点击事件 两个按钮放在<script>中 <script type="text/html" id="toolbarDemo"> <div class="layui-btn-container demoTable"> <button class="layui-btn layui-btn ...
分类:
其他好文 时间:
2020-09-16 12:11:02
阅读次数:
32
1.验证手机号码的方法: public static bool IsHandset(string str_handset){ return System.Text.RegularExpressions.Regex.IsMatch(str_handset, @"^1[3456789]\d{9}$"); ...
分解v-model <template> <div> <input type="text" :value='$store.state.message' @input='updateMessage'> </div> </template> <script> export default { metho ...
分类:
其他好文 时间:
2020-09-16 12:04:44
阅读次数:
67
项目中,需要实现字体相关操作,收集了一些相关参数,可以引用的。 using System.Collections.Generic; using System.Drawing; using System.Drawing.Text; using System.Linq; using System.Net ...
分类:
其他好文 时间:
2020-09-15 21:20:52
阅读次数:
53
1.第一个springboot applicat.properties: server.port=80 可以更改运行端口号 banner.text 在resource文件夹中加入banner.text网上搜springboot的运行图行,添加进去就可以改变运行出来的图形了。banner.text: ...
分类:
编程语言 时间:
2020-09-15 21:06:58
阅读次数:
95
React获取DOM元素-ref属性 类组件 通过ref给元素做标记(react不推荐使用) <div id="app"></div> <script type="text/babel"> class App extends React.Component{ componentDidMount(){ ...
分类:
其他好文 时间:
2020-09-14 18:58:28
阅读次数:
86
@Scheduled所支持的参数: 1.cron:cron表达式,指定任务在特定时间执行;2.fixedDelay:表示上一次任务执行完成后多久再次执行,参数类型为long,单位ms;3.fixedDelayString:与fixedDelay含义一样,只是参数类型变为String;4.fixedR ...
分类:
编程语言 时间:
2020-09-14 18:57:29
阅读次数:
129
一、为什么要使用LocalDateTime?我们再来看一下Java标准库提供的API。Java标准库有两套处理日期和时间的API:一套定义在java.util这个包里面,主要包括Date、Calendar和TimeZone这几个类;一套新的API是在Java8引入的,定义在java.time这个包里面,主要包括LocalDateTime、ZonedDateTime、ZoneId等。为什么会有新旧两
分类:
其他好文 时间:
2020-09-12 21:51:08
阅读次数:
49
''' from concurrent.futures import ThreadPoolExecutor,ProcessPoolExecutor import time,random,os def task(name,n): print('%s%s is running' %(name,os.ge ...
分类:
编程语言 时间:
2020-09-12 21:45:01
阅读次数:
36