protected void Button2_Click(object sender, EventArgs e) { if (DropDownList1.SelectedIndex>0) { Session["kk"] = this.DropDownList1.SelectedValue.Trim( ...
一、拼接字段:concat a、b分别是表中的两列,现在把a,b拼接在一起形成1列, b用括号括起来 select concat(a, "(", b, ")") from table 二、清除空格 RTrim( ): 清除字符串右侧的空格 LTrim( ):清除字符串左侧的空格 Trim( ): 清 ...
分类:
数据库 时间:
2020-01-29 18:01:54
阅读次数:
83
/** * 去除空格 * @param {str} * @param {type} * type: 1-所有空格 2-前后空格 3-前空格 4-后空格 * @return {String} */ trim (str, type) { type = type || 1 switch (type) { ...
分类:
其他好文 时间:
2020-01-27 00:15:10
阅读次数:
92
LogInfoMapper.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis- ...
分类:
移动开发 时间:
2020-01-26 19:18:45
阅读次数:
86
### ```js var str = ' hello ' console.log(str.trim()) //hello 去除两端空格 var str1 = ' he l l o ' console.log(str.trim()) //he l l o 去除两端空格 ``` ```html Doc... ...
分类:
其他好文 时间:
2020-01-22 10:58:05
阅读次数:
48
(本来很小的需求 网上几乎没有给出直接的答案 希望帮助到更多的人 笑哭~) 1 <?php 2 $request = '00000000106.0f3 '; 3 //$request = '00000000106.03 '; 4 $temp = trim($request); 5 $value = ...
分类:
Web程序 时间:
2020-01-21 19:55:18
阅读次数:
115
网站开发时经常遇到需要追踪链接跳转是否正确的需求, 例如在浏览器输入一个链接 https://www.ryanzoe.top/git/how-to-revert-git 由于链接输入不完整,但是我有配置 301 跳转到完整的文章链接,所以最终地址栏显示的链接为 https://www.ryanzoe ...
分类:
其他好文 时间:
2020-01-20 12:56:27
阅读次数:
369
以上图片来自新浪微博。 本题要求你实现一个稍微更值钱一点的 AI 英文问答程序,规则是: 无论用户说什么,首先把对方说的话在一行中原样打印出来; 消除原文中多余空格:把相邻单词间的多个空格换成 1 个空格,把行首尾的空格全部删掉,把标点符号前面的空格删掉; 把原文中所有大写英文字母变成小写,除了 I ...
分类:
其他好文 时间:
2020-01-19 00:23:02
阅读次数:
107
private void btnSave_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(txt_FilePath.Text) || txt_FilePath.Text.Trim().Substring(txt_FilePat ...
分类:
其他好文 时间:
2020-01-17 11:51:00
阅读次数:
64