zoukankan      html  css  js  c++  java
  • .net 中的单引号问题

    今天在.net中调试了变天的单引号问题:

     var strSQL = " exec p_insert ";

     var strSQL += " @name= ' " + name + " ' ";

     var strSQL = " exec p_insert ";
      ScriptManager.RegisterClientScriptBlock(UpdatePanel1, UpdatePanel1.GetType(), "resultScript", String.Format(
    @"
        $('#result ').html('{0}');
    "
        , strSQL.Replace(" ' "," ")   //之前为  strSQL 一直报错 Uncaught SyntaxError: Unexpected number,修改后替换单引号才正常
    ), true);

     var strSQL = " exec p_insert ";
  • 相关阅读:
    CSU 1122
    CSU 1256
    CSU 1240
    HDU 1874
    CSU 1004
    Problem F CodeForces 16E
    Problem E CodeForces 237C
    Problem C FZU 1901
    12-30
    2016-12-29
  • 原文地址:https://www.cnblogs.com/y0umer/p/3839164.html
Copyright © 2011-2022 走看看