日常
文章平均质量分 62
AnRenY1
这个作者很懒,什么都没留下…
展开
-
日常笔记》》》字符串分割、截取等操作
① 根据特定字符分割 string str="xxx.html"; string[] arr=str.Split('.'); ② LastIndexof() 根据特定字符获取该字符处于某字符串的位置(索引) ③ 根据特定位置截取字符串 //获取文件名(第一种) string str="/temp/xxx.html"; string path=str.Substring(str.La原创 2017-07-06 14:56:23 · 266 阅读 · 0 评论 -
用SQL快速写代码(源自某老师给我的启发。。)
select 'model.'+name+'=txt'+name+'.Text.Trim();' from syscolumns where id=object_id('TableName')原创 2017-09-27 18:40:42 · 887 阅读 · 0 评论