找回密码
 加入
搜索
查看: 2602|回复: 2

[系统综合] [已解決]字串符中 如果有特殊保留字元 怎麼處理 例如: ;分號 或者" 這個符號

[复制链接]
发表于 2011-9-17 21:34:59 | 显示全部楼层 |阅读模式
本帖最后由 kk_lee69 于 2011-9-18 00:55 编辑

字串符中 如果有特殊保留字元 怎麼處理 例如: ;分號 或者" 這個符號

$A= "  <th style="min-height: 24px; font-style: normal; font-variant: normal; font-weight: bold; line-height: 16px; font-size: 13px; font-family: MingLiU, 'Arial Unicode MS'; vertical-align: bottom; overflow: hidden; width: 108px; color: #ffffff; text-align: left; text-decoration: none; border: 1px solid #cacad9; padding: 0px; background-color: #5175b9; background-repeat: no-repeat" scope="col">   "

這樣其實因為;號的問題  就會出現問題了......

怎麼可以讓字串  直接存入  下面的值

<th style="min-height: 24px; font-style: normal; font-variant: normal; font-weight: bold; line-height: 16px; font-size: 13px; font-family: MingLiU, 'Arial Unicode MS'; vertical-align: bottom; overflow: hidden; width: 108px; color: #ffffff; text-align: left; text-decoration: none; border: 1px solid #cacad9; padding: 0px; background-color: #5175b9; background-repeat: no-repeat" scope="col">
发表于 2011-9-17 22:18:36 | 显示全部楼层
$Str = '<th style="min-height: 24px; font-style: normal; font-variant: normal; font-weight: bold; line-height: 16px; font-size: 13px; font-family: MingLiU, ' & "'" & 'Arial Unicode MS' & "'" & '; vertical-align: bottom; overflow: hidden; width: 108px; color: #ffffff; text-align: left; text-decoration: none; border: 1px solid #cacad9; padding: 0px; background-color: #5175b9; background-repeat: no-repeat" scope="col">' 
Msgbox(0, '', $Str)
很久以前写的,可以参考下~
http://www.autoitx.com/thread-10929-1-1.html
 楼主| 发表于 2011-9-18 00:55:15 | 显示全部楼层
感謝幫忙!!
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-9-21 00:29 , Processed in 0.078676 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表