1
Feb.2021
Beyond Compare 4.2 亲测有效 by 2021.2.1
6TTCoWi2N0Pv+o2HGfqUpZfuaMhtf2zX0u1OuNeqTYkKKWh-CKwBWkPUG3+CiAQ2q4MNPbf0t8+gmPdo+Vyw64aU-zuQQt9d7Q6EcJ+T42by0E+kxf+q3QLs40H+RD3h5OLjFGpxClodRnTCNoAM39xsWm2aHZI0Z9KdXzLo1fo1OdNlaptoK17SsxNK-7JUtTztLwBM8BUwWA24ghoeLhFq39FMP+pcdU7RttFJoosVk3d-DRrDH0EARo6GXWEeeUgnyjdWKv5ElwrHWw2HMpfFq9VRfMqcJV00ePAUB4MT3zPE43Tu0BDt-WXYSpUqf7AjaWnBC7MpNfdkS0mWXk
1
Jan.2021
<el-date-picker
v-model="dateRange"
type="daterange"
align="right"
style="margin-right: 10px;"
unlink-panels
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
:picker-options="pickerOptions"
format="yyyy年MM月dd日"
value-format="yyyy-MM-dd"
class="filter-item"
@keyup.enter.native="handleFilter"
/>
在选择日期范围时,默认情况下左右面板会联动。如果希望两个面板各自独立切换当前月份,可以使用unlink-panels属性解除联动。
1
Jan.2021
28
Nov.2020
在使用vue-eliment-admin进行前端调试的过程中,发现一直有一个 http://localhost:9527/sockjs-node/info?t=1432183712002 这样的链接在运行,十分影响调试, 在该项目搜索 sockjs-node 没有发现有些路由,放狗搜索到如下解决方案,可完美解决:
27
Oct.2020
防止万一,请备份文件后应用如下宏(用法:如果有选择则处理选择区域,否则处理全部):
Sub 自动编号转文本()
If Selection.Type = wdSelectionIP Then
ActiveDocument.Content.ListFormat.ConvertNumbersToText
ActiveDocument.Content.Find.Execute FindText:="^t", replacewith:=" ", Replace:=wdReplaceAll
Else
Selection.Range.ListFormat.ConvertNumbersToText
Selection.Find.Execute FindText:="^t", replacewith:=" ", Replace:=wdReplaceAll
End If
End Sub
Selection对象有个type属性,在没有选择内容的时候(插入点时),type属性的值是:wdSelectionIP
选中的内容范围:Selection.Range
全部文档范围:ActiveDocument.Content
Sub 自动编号转文本()
If Selection.Type = wdSelectionIP Then
ActiveDocument.Content.ListFormat.ConvertNumbersToText
ActiveDocument.Content.Find.Execute FindText:="^t", replacewith:=" ", Replace:=wdReplaceAll
Else
Selection.Range.ListFormat.ConvertNumbersToText
Selection.Find.Execute FindText:="^t", replacewith:=" ", Replace:=wdReplaceAll
End If
End Sub
Selection对象有个type属性,在没有选择内容的时候(插入点时),type属性的值是:wdSelectionIP
选中的内容范围:Selection.Range
全部文档范围:ActiveDocument.Content
23
Oct.2020
使用PowerDesigner设计数据库表,发现每次都需要手工去设置字段属性中的 Comment,才能在生成的 SQL 文件中添加注释comment,可是我们明明已经给该字段的 name 命名了。想怎么可以直接将name和comment绑定或将name自动填充到注释(comment)中,于是乎放狗搜索一翻,果然有结果。
在powerdesigner界面 使用 快捷键 shift+ctrl+x 弹出窗口
将如下脚本复制进去然后运行即可
在powerdesigner界面 使用 快捷键 shift+ctrl+x 弹出窗口
将如下脚本复制进去然后运行即可
25
Sep.2020
JS去除过滤字符串中的所有空格(包含中间空格)
用法:Trim($("#fullname").val(),"g");
/**去除字符串中的所有空格 **/
function Trim(str,is_global){
var result;
result = str.replace(/(^\s+)|(\s+$)/g,"");
if(is_global.toLowerCase()=="g")
{
result = result.replace(/\s/g,"");
}
return result;
}
用法:Trim($("#fullname").val(),"g");
/**去除字符串中的所有空格 **/
function Trim(str,is_global){
var result;
result = str.replace(/(^\s+)|(\s+$)/g,"");
if(is_global.toLowerCase()=="g")
{
result = result.replace(/\s/g,"");
}
return result;
}