WPF对某个元素进行淡入淡出,例如对 ImagePage 元素进行淡入淡出,代码如下: 淡入 daV = new DoubleAnimation(0, 1, new Duration(TimeSpan.FromSeconds(1))); this.ImagePage.BeginAnimation(UIElement....
electron中使用jquery
electron中使用jquery: <!-- Insert this line above script imports --> <script>if (typeof module === 'object') {window.module = module; module = undefined;}</script> <!-- n...
asp.net core上传文件
asp.net core上传文件: public class BannerController : Controller { private ApplicationDbContext _db; private IHostingEnvironment _environment; public BannerControll...
asp-action 等taghelper不高亮的解决办法
asp-action 等 taghelper 不高亮的解决办法: 在_ViewImports.cshtml中添加 @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 即可
PHP 解决curl_exec直接显示内容的问题
PHP 解决curl_exec直接显示内容的问题。 调用curl_exec会直接显示接收到的内空,而不是保存在变量中,这个问题可以通过设置: curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 来解决 function getR...
jexus 隐藏 index.php
把NoFile的配置改为: NoFile=/index.php 其他不用动 ,不用使用rewrite。 如下图:
JAVASCRIPT 获取 URL参数
JAVASCRIPT 获取 URL中的参数: function GetUrlParms() { var args=new Object(); var query=location.search.substring(1);//获取查询串 var pairs=query.split("&");//在逗号处...
MFC 打印图片
MFC 实现打印图片功能,代码如下: BOOL PrintBitmap(LPCTSTR filename) { CPrintDialog printDlg(FALSE); // printDlg.GetDefaults(); if (printDlg.DoModal() == IDCANCEL) return FA...
VC生成隐藏 受保护的系统目录
VC生成隐藏 受保护的系统目录 /* add by laowu 20160904 */ TCHAR szPath[MAX_PATH]; ZeroMemory(szPath, MAX_PATH); SHGetSpecialFolderPath(NULL, szPath, CSIDL_APPDATA, FALSE); strcat(szPath, "...
vc常用到的一些函数
vc常用到的一些函数 #include <Shlwapi.h> #pragma comment (lib , "shlwapi.lib" ) #define nullptr NULL inline BYTE toHex(const BYTE &x) { return x > 9 ? x + 55: x + 48; } i...
