WPF遮蔽层的实现
在一些项目中,难免会有耗时的加载,如果加载时没有提示,给人一种假死的感觉,很不友好,那么现在福利来啦,WPF版的模态窗体,先上效果图
实际效果指针是转动的,话不多说,一大批干货来袭
XMAL的代码
Window x:Class="ZhiHeng.IntelligentExpress.WpfUI.Views.CoverForm" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" Title="CoverForm" x:Name="Window" Style="{StaticResource WindowsStyle}" Opacity="0.5"> <Window.Resources> <Storyboard x:Key="Storyboard1"> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" RepeatBehavior="Forever" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(UIElement.Opacity)"> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever" Storyboard.TargetName="ellipse1"> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever" Storyboard.TargetName="ellipse2"> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever" Storyboard.TargetName="ellipse3"> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever" Storyboard.TargetName="ellipse4"> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever" Storyboard.TargetName="ellipse5"> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever" Storyboard.TargetName="ellipse6"> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever" Storyboard.TargetName="ellipse7"> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever" Storyboard.TargetName="ellipse8"> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever" Storyboard.TargetName="ellipse9"> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever" Storyboard.TargetName="ellipse10"> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever" Storyboard.TargetName="ellipse11"> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever" Storyboard.TargetName="ellipse12"> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever" Storyboard.TargetName="ellipse13"> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever" Storyboard.TargetName="ellipse14"> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever" Storyboard.TargetName="ellipse15"> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever" Storyboard.TargetName="ellipse16"> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever" Storyboard.TargetName="ellipse17"> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" RepeatBehavior="Forever" Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)"> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" RepeatBehavior="Forever" Storyboard.TargetName="border1" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)"> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> <SplineDoubleKeyFrame KeyTime=" /> </DoubleAnimationUsingKeyFrames> </Storyboard> </Window.Resources> <Window.Triggers> <EventTrigger RoutedEvent="FrameworkElement.Loaded"> <BeginStoryboard Storyboard="{StaticResource Storyboard1}" /> </EventTrigger> </Window.Triggers> <Grid x:Name="LayoutRoot"> <Viewbox Width="> <Grid HorizontalAlignment=" VerticalAlignment="Center" Width="3.333" Height="3.333" Visibility="Visible"> <Ellipse RenderTransformOrigin="0.468,3.443" x:Name="ellipse" Fill="Black" Stroke="{x:Null}" /> <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}" x:Name="ellipse0" > <Ellipse.RenderTransform> <TransformGroup> <ScaleTransform ScaleX=" /> <SkewTransform AngleX=" /> <RotateTransform Angle=" /> <TranslateTransform X=" /> </TransformGroup> </Ellipse.RenderTransform> </Ellipse> <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}" x:Name="ellipse1" > <Ellipse.RenderTransform> <TransformGroup> <ScaleTransform ScaleX=" /> <SkewTransform AngleX=" /> <RotateTransform Angle=" /> <TranslateTransform X=" /> </TransformGroup> </Ellipse.RenderTransform> </Ellipse> <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}" x:Name="ellipse2" > <Ellipse.RenderTransform> <TransformGroup> <ScaleTransform ScaleX=" /> <SkewTransform AngleX=" /> <RotateTransform Angle=" /> <TranslateTransform X=" /> </TransformGroup> </Ellipse.RenderTransform> </Ellipse> <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}" x:Name="ellipse3"> <Ellipse.RenderTransform> <TransformGroup> <ScaleTransform ScaleX=" /> <SkewTransform AngleX=" /> <RotateTransform Angle=" /> <TranslateTransform X=" /> </TransformGroup> </Ellipse.RenderTransform> </Ellipse> <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}" x:Name="ellipse4"> <Ellipse.RenderTransform> <TransformGroup> <ScaleTransform ScaleX=" /> <SkewTransform AngleX=" /> <RotateTransform Angle=" /> <TranslateTransform X=" /> </TransformGroup> </Ellipse.RenderTransform> </Ellipse> <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}" x:Name="ellipse5"> <Ellipse.RenderTransform> <TransformGroup> <ScaleTransform ScaleX=" /> <SkewTransform AngleX=" /> <RotateTransform Angle=" /> <TranslateTransform X=" /> </TransformGroup> </Ellipse.RenderTransform> </Ellipse> <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}" x:Name="ellipse6" > <Ellipse.RenderTransform> <TransformGroup> <ScaleTransform ScaleX=" /> <SkewTransform AngleX=" /> <RotateTransform Angle=" /> <TranslateTransform X=" /> </TransformGroup> </Ellipse.RenderTransform> </Ellipse> <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}" x:Name="ellipse7" > <Ellipse.RenderTransform> <TransformGroup> <ScaleTransform ScaleX=" /> <SkewTransform AngleX=" /> <RotateTransform Angle=" /> <TranslateTransform X=" /> </TransformGroup> </Ellipse.RenderTransform> </Ellipse> <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}" x:Name="ellipse8" > <Ellipse.RenderTransform> <TransformGroup> <ScaleTransform ScaleX=" /> <SkewTransform AngleX=" /> <RotateTransform Angle=" /> <TranslateTransform X=" /> </TransformGroup> </Ellipse.RenderTransform> </Ellipse> <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}" x:Name="ellipse9" > <Ellipse.RenderTransform> <TransformGroup> <ScaleTransform ScaleX=" /> <SkewTransform AngleX=" /> <RotateTransform Angle=" /> <TranslateTransform X=" /> </TransformGroup> </Ellipse.RenderTransform> </Ellipse> <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}" x:Name="ellipse10" > <Ellipse.RenderTransform> <TransformGroup> <ScaleTransform ScaleX=" /> <SkewTransform AngleX=" /> <RotateTransform Angle=" /> <TranslateTransform X=" /> </TransformGroup> </Ellipse.RenderTransform> </Ellipse> <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}" x:Name="ellipse11" > <Ellipse.RenderTransform> <TransformGroup> <ScaleTransform ScaleX=" /> <SkewTransform AngleX=" /> <RotateTransform Angle=" /> <TranslateTransform X=" /> </TransformGroup> </Ellipse.RenderTransform> </Ellipse> <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}" x:Name="ellipse12" > <Ellipse.RenderTransform> <TransformGroup> <ScaleTransform ScaleX=" /> <SkewTransform AngleX=" /> <RotateTransform Angle=" /> <TranslateTransform X=" /> </TransformGroup> </Ellipse.RenderTransform> </Ellipse> <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}" x:Name="ellipse13" > <Ellipse.RenderTransform> <TransformGroup> <ScaleTransform ScaleX=" /> <SkewTransform AngleX=" /> <RotateTransform Angle=" /> <TranslateTransform X=" /> </TransformGroup> </Ellipse.RenderTransform> </Ellipse> <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}" x:Name="ellipse14" > <Ellipse.RenderTransform> <TransformGroup> <ScaleTransform ScaleX=" /> <SkewTransform AngleX=" /> <RotateTransform Angle=" /> <TranslateTransform X=" /> </TransformGroup> </Ellipse.RenderTransform> </Ellipse> <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}" x:Name="ellipse15" > <Ellipse.RenderTransform> <TransformGroup> <ScaleTransform ScaleX=" /> <SkewTransform AngleX=" /> <RotateTransform Angle=" /> <TranslateTransform X=" /> </TransformGroup> </Ellipse.RenderTransform> </Ellipse> <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}" x:Name="ellipse16" > <Ellipse.RenderTransform> <TransformGroup> <ScaleTransform ScaleX=" /> <SkewTransform AngleX=" /> <RotateTransform Angle=" /> <TranslateTransform X=" /> </TransformGroup> </Ellipse.RenderTransform> </Ellipse> <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}" x:Name="ellipse17" > <Ellipse.RenderTransform> <TransformGroup> <ScaleTransform ScaleX=" /> <SkewTransform AngleX=" /> <RotateTransform Angle=" /> <TranslateTransform X=" /> </TransformGroup> </Ellipse.RenderTransform> </Ellipse> <Ellipse RenderTransformOrigin="0.5,0.499" x:Name="ellipse_Copy" Fill="Black" Stroke="{x:Null}" Margin="-0.012,0,0.001,-9.67" VerticalAlignment="Bottom" Height="3.344"> <Ellipse.RenderTransform> <TransformGroup> <ScaleTransform ScaleX=" /> <SkewTransform AngleX=" /> <RotateTransform Angle=" /> <TranslateTransform X=" /> </TransformGroup> </Ellipse.RenderTransform> </Ellipse> <Border RenderTransformOrigin="0.492,1.006" Margin="1.081,0,1.086,-8.056" x:Name="border" VerticalAlignment="Bottom" Height="8.622" Background="Black" CornerRadius="1,1,0,0"> <Border.RenderTransform> <TransformGroup> <ScaleTransform ScaleX=" /> <SkewTransform AngleX=" /> <RotateTransform Angle=" /> <TranslateTransform X=" /> </TransformGroup> </Border.RenderTransform> </Border> <Border Height="4.994" Background="Black" CornerRadius="1,1,0,0" RenderTransformOrigin="0.496,1.001" Margin="0.705,0,0.714,-8.058" x:Name="border1" VerticalAlignment="Bottom"> <Border.RenderTransform> <TransformGroup> <ScaleTransform ScaleX=" /> <SkewTransform AngleX=" /> <RotateTransform Angle=" /> <TranslateTransform X=" /> </TransformGroup> </Border.RenderTransform> </Border> </Grid> </Viewbox> <Label Content=" Foreground="Orange" HorizontalAlignment="Left" Margin="396,668,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.274,0.462"/> </Grid> </Window>
后台C#代码
public partial class CoverForm : Window { public CoverForm(Action workAction) { InitializeComponent(); this.workAction = workAction; System.Threading.Thread t = new System.Threading.Thread(ExecWorkAction); t.IsBackground = true; t.Start(); } private Action workAction = null; private void ExecWorkAction() { try { var workTask = new Task(workAction); workTask.Start(); Task.WaitAll(workTask); } finally { this.Dispatcher.Invoke(new Action(() => { this.Close(); })); } } }
调用的代码
new CoverForm(() => {耗时的代码 }); }).Show();
有需要的尽管拿去吧,要问我是谁,请叫我是雷锋。
WPF遮蔽层的实现的更多相关文章
- WPF 蒙层罩,正在加载
参考园子里的一篇文章,比较好用.可以直接用,可以自己改. 动画效果: 容器的触发器,旋转容器: 属性配置:使用依赖属性,并且在xaml中写绑定.
- Loading 遮蔽层 简单实现。
<!--背景div--><div id="bg" class="bg" style="display:none;text-align ...
- HTML页面弹出自定义对话框带遮蔽罩(使用JavaScript)
转载:http://blog.sina.com.cn/s/blog_610f47c50100ohe4.html 原理其实很简单:首先绘制弹出的自定义对话框,将其使用display:none隐藏,因为设 ...
- 10、WPF程序集
WPF核心程序集 PresentationCore.dll:这个程序集定义了许多构成WPF GUI层基础的类型.例如包含WPF Ink API(pc笔针输入,手写输入)的支持.几个动画基元以及几个图形 ...
- WPF核心对象模型-类图和解析
DispatcherObject是根基类,通过继承该类,可以得到访问创建该对象的UI线程的Dispatcher对象的能力.通过Dispatcher对象,可以将代码段合并入该UI线程执行. Depend ...
- dotnet 读 WPF 源代码笔记 渲染收集是如何触发
在 WPF 里面,渲染可以从架构上划分为两层.上层是 WPF 框架的 OnRender 之类的函数,作用是收集应用程序渲染的命令.上层将收集到的应用程序绘制渲染的命令传给下层,下层是 WPF 的 GF ...
- HTML+CSS项目开发总结
好几天没更新博客了,刚实战完一个HTML+CSS的简单项目.经过几天的摸索,发现收益良多.之前只是单纯得写demo,看知识点,没有亲自实战项目.但实战过后才会了解,如何才能更好地提升自己的技术.针对这 ...
- easy ui 零散技巧
1.Jquery带上下文查找: 格式:$(selector,context) 例如:$("input",window.document),查找当前文档下的说有input元素,也等价 ...
- html+jquery翻页相册(原创)
呵呵 今天心情大好,再发一篇最进前端实现的相册模仿功能 这个相册是在一个网站的案例展示页面上实现的,没单独写出来,没时间,重用性也很差,以后有时间了再单独提取出来, 写这个玩意前,我在网上找了一些案例 ...
随机推荐
- SilkTest Q&A 9
Q81:我应该如何存取excel sheet里面的空字符串? A81:定制代码如下: 解决方案1: [-] if sText!=NULL [ ] Page.tfldName.SetText(sText ...
- C2B未来:大数据定制
昨天看到微信SuperSofter写了一篇文章,有感而发.以便备记. 这是一种典型的C2B模式.阿里不仅仅是在与腾讯拼移动.它的电商本土业务也在稳步推进.近期一个里程碑事件是.阿里包下了美的.九阳.苏 ...
- 一种H.264高清视频的无参考视频质量评价算法(基于QP和跳过宏块数)
本文记录一种无参考视频质量评价算法.这是我们自己实验室前两年一个师姐做的,算法还是比较准确的,在此记录一下. 注意本算法前提是高清视频.而且是H.264编码方式. 该方法主要使用两个码流里面的参数进行 ...
- Android应用开发学习笔记之播放音频
作者:刘昊昱 博客:http://blog.csdn.net/liuhaoyutz Android支持常用音视频格式文件的播放,本文我们来学习怎样开发Android应用程序对音视频进行操作. Andr ...
- 做web项目时对代码改动后浏览器端不生效的应对方法(持续更新)
做web项目时,常常会遇到改动了代码,但浏览器端没有生效,原因是多种多样的,我会依据我遇到的情况逐步更新解决的方法 1.执行的时候採用debug模式,普通情况下使用项目部署button右边那个butt ...
- hadoop(六) - ZooKeeper安装与配置
一. ZooKeeper配置 1.使用winscp上传zk安装包 zookeeper-3.4.5.tar.gz 2.解压安装包tar -zxvf zookeeper-3.4.5.tar.gz -C / ...
- Spring核心技术
这是第二次看关于Spring的资料,由于刚開始学习Spring的时候是边看视频边学习的,所以更注重的是实现代码,可是对宏观的掌握还是不够,这次主要从宏观的角度来分析一下Spring. 什么是Sprin ...
- 循环获取json对象的属性名
今天做项目遇到一个难题,asp.net 项目,数据库中一个表有八十多个字段,我已经在前台将表转化为了json字符数组,我要在前台循环这八十多个字段,我只能根据属性名来处理,一筹莫展,最终解决,收益颇多 ...
- ubuntu12.04安装搜狗输入法配置,安装packettracer字体设置,软件推荐
装上系统,后的各种配置,各种出错之后的解决. 一.安装搜狗输入法 如果系统以前安装了先卸载: sudo apt-get remove fcitx* #删除配置文件 sudo apt-get purge ...
- 虚幻4随笔4 从project開始
前文说到UE3開始.虚幻就使用了UnrealBuildTool(下面简称UBT)来编译和生成代码. 为什么这么做而不是使用VS是非常好理解的:由于VS跨平台会比較麻烦.像虚幻这样体量的proje ...