编程

PDO execute()和exec()的区别

PDO execute()和exec()的区别如下: exec() 执行一条sql语句,返回受影响的行数,此函数不返回结果集合。 execute()函数 用于执行已经预处理过的语句,返回结果只有成功或失败。预处理要使用prepare...

php.ini 打开错误信息

php.ini 打开错误信息,修改如下配置: display_errors=On error_reporting = E_ALL | E_STRICT 如果使用apache,则要在httpd.conf最后添加  php_flag display_errors&n...

反射实现 WPF 按钮的  PerformClick 

反射实现 WPF 按钮的  PerformClick: using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using System.Win...

Qt Quick 中最大化窗体

Qt Quick 中最大化窗体: import QtQuick 2.5 import QtQuick.Window 2.2 Window { visible: true // width: 640 // height: 480 visibility: "Maximized" // 全屏使用 FullScreen ...

WPF对某个元素进行淡入淡出

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...

PHP 解决curl_exec直接显示内容的问题

PHP 解决curl_exec直接显示内容的问题。 调用curl_exec会直接显示接收到的内空,而不是保存在变量中,这个问题可以通过设置: curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 来解决 function getR...

jexus 隐藏 index.php

把NoFile的配置改为: NoFile=/index.php 其他不用动 ,不用使用rewrite。 如下图: