zoukankan      html  css  js  c++  java
  • 2014年11月5号工作中遇见的一些问题,记录一下.

    1.Thinkphp如果在有多个数据库的时候,使用了M('表名','表前缀','数据库配置')的格式实例化模型后,默认的数据库配置会改变,今天用户说题目看不见答案,然后我去看了看  明明产生的SQL语句能执行,并且有答案内容,但是就是用TP里的方法查不出来,结果给M方法传入配置项,则查询成功;

    2.创建文件和文件夹

    在所有 Windows PowerShell 提供程序中,创建新项的方法都是相同的。如果 Windows PowerShell 提供程序具有多种类型的项(例如,FileSystem Windows PowerShell 提供程序区分目录和文件),则需要指定项类型。

    以下命令创建新文件夹 C: empNew Folder:
    New-Item -Path 'C: empNew Folder' -ItemType "directory"

    以下命令创建新的空文件 C: empNew Folderfile.txt:
    New-Item -Path 'C: empNew Folderfile.txt' -ItemType "file"

  • 相关阅读:
    罗马数字
    逆序对
    等价串
    郊区春游
    贝壳找房函数最值
    Educational Codeforces Round 45 Editorial
    Codeforces Round #486 (Div. 3)
    checkbox保存和赋值
    oninput和onchange的区别
    cookie路径概念理解
  • 原文地址:https://www.cnblogs.com/tudou1223/p/4076971.html
Copyright © 2011-2022 走看看