2019/6/29

wordpress后台添加菜单

add_action('admin_menu','add_settings_menu'); function add_settings_menu() { add_menu_page(__('首菜单'), __('首菜单'), '权限名称', __FILE__, '对应函数', '菜单图标', 菜单权重0-99); add_subme…

  • wordpress
  • 2019/6/29
  • helei
  • 902
  • 2019/6/27

    c#mysql操作

    String connetStr = "server=192.168.1.1;port=3306;user=root;password=root;database=root;"; MySqlConnection conn = new MySqlConnection(connetStr); try { conn.Op…

  • c# mysql
  • 2019/6/27
  • helei
  • 935
  • 2019/6/27

    c#日期操作

    DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")//日期时间格式 new DateTimeOffset(DateTime.UtcNow).ToUnixTimeSeconds()//获取当前时间戳(10位) System.DateTime startTime = TimeZone.CurrentTimeZ…

  • c#
  • 2019/6/27
  • helei
  • 946
  • 2019/6/20

    wordpress文章内容自动换行

    remove_filter('the_content', 'wpautop');

  • 未分类
  • 2019/6/20
  • helei
  • 944
  • 2019/6/19

    wordpress禁用自动更新提示

    add_filter('pre_site_transient_update_core', create_function('$a', "return null;")); // 关闭核心提示 add_filter('pre_site_transient_update_plugins', create_function('$a', "return null;")); // 关闭插…

  • 未分类
  • 2019/6/19
  • helei
  • 880
  • 2019/6/12

    PHP上传excel并读取

    链接:https://pan.baidu.com/s/1XnakEk5Apz9ZOsWPG7yNaA 提取码:5mm1 下载PHPExcel include "../web/Classes/PHPExcel/IOFactory.php"; // 允许上传的图片后缀 $allowedExts = array("xls", "xl…

  • php
  • 2019/6/12
  • helei
  • 1,397
  • 2019/6/10

    C#winform textbox 自动填充提示

    this.textBox1.AutoCompleteCustomSource.Clear(); this.textBox1.AutoCompleteCustomSource.AddRange(accountList.ToArray()); this.textBox1.AutoCompleteMode = System.Window…

  • c#
  • 2019/6/10
  • helei
  • 984