
能用批處理讀取指定文本并按要求增減或替換字符嗎網站程序裝幾個插件,需要修改原網頁代碼才能實現插件效果!假設文本文件中如下代碼:
nclick="copycode($('code0'));">復制代碼
- B.toolbarCommands = {
- boldIcon: ['Bold', '粗體', iconUI, ToggleCommandController, 'command'],
- italicIcon: ['Italic', '斜體', iconUI, ToggleCommandController, 'command'],
- underlineIcon: ['Underline', '下劃線', iconUI, ToggleCommandController, 'command'],
- strikethroughIcon: ['Strikethrough', '刪除線', iconUI, ToggleCommandController, 'command'],
- removeformat: ['RemoveFormat', '清除樣式', iconUI, CommandController, 'command'],
- leftIcon: ['JustifyLeft', '左對齊',iconUI, ToggleCommandController, 'command'],
- rightIcon: ['JustifyRight', '右對齊', iconUI, ToggleCommandController, 'command'],
- centerIcon: ['JustifyCenter', '居中對齊', iconUI, ToggleCommandController, 'command'],
- fullIcon: ['JustifyFull', '兩端對齊', iconUI, ToggleCommandController, 'command'],
- imageIcon:['Image', '圖片', iconUI, InsertCommandController, 'insertCommand'],
- foreColor:['Forecolor', '文字顏色', colorUI, ColorSelectorController, 'valueCommand', '#FF0000'],
- backColor: [B.UA.ie ? 'Backcolor' : 'hilitecolor', '背景色',colorUI, ColorSelectorController, 'valueCommand', '#FFFF00'],
- olIcon: ['InsertOrderedList', '編號',iconUI, CommandController, 'command'],
- ulIcon: ['InsertUnorderedList', '項目符號',iconUI, CommandController, 'command'],
- indentIcon: ['Indent', '縮進',iconUI, CommandController, 'wrapCommand'],
- outdentIcon: ['Outdent', '取消縮進',iconUI, CommandController, 'command'],
- hrIcon: ['Inserthorizontalrule','分隔線',iconUI, CommandController, 'command'],
- quoteIcon: ['blockquote','插入引用',iconUI, InsertCommandController, 'insertCommand'],
- codeIcon: ['code', '插入代碼',iconUI, InsertCommandController, 'insertCommand'],
- linkIcon: ['createlink','插入鏈接',iconUI, InsertCommandController, 'command'],
- unlinkIcon: ['Unlink','取消鏈接', iconUI, CommandController, 'command'],
- tableIcon: ['inserttable', '插入表格',iconUI,InsertCommandController, 'insertCommand'],
- faceBtn: ['emotional', '表情', buttonUI, PluginCommandController, 'insertCommand'],
- photoBtn: ['insertImage', '圖片', buttonUI, PluginCommandController, 'insertCommand'],
- fileBtn: ['insertAttach', '附件', buttonUI, PluginCommandController, 'insertCommand'],
- videoBtn: ['insertvideo', '視頻', buttonUI, InsertCommandController, 'insertCommand'],
- musicBtn: ['insertmusic', '音樂', buttonUI, InsertCommandController, 'insertCommand'],
- sellIcon: ['sell', '插入出售', iconUI, PluginCommandController, 'insertCommand'],
- postIcon: ['post', '插入隱藏', iconUI, PluginCommandController, 'insertCommand'],
- pwcodeIcon: ['pwcode', '自定義代碼', iconUI, PluginCommandController, 'insertCommand'],
- setformIcon: ['setform', '帖子格式', iconUI, PluginCommandController, 'insertCommand'],
- undoIcon: ['undo', '撤銷', iconUI, CommandController, 'command'],
- redoIcon: ['redo', '恢復', iconUI, CommandController, 'command'],
- pgformatIcon: ['PgFormat', '段落化', iconUI, CommandController, 'command'],
- fontSelector: ['FontName','字體',selectorUI, ValueSelectorController, 'valueCommand',
nclick="copycode($('code1'));">復制代碼
- 用批處理讀取讀取該文本文件,讀取至
- photoBtn: ['insertImage', '圖片', buttonUI, PluginCommandController, 'insertCommand'],
- 在這段代碼下面添加一行代碼:
- downsBtn: ['insertdowns', '下載', buttonUI, InsertCommandController, 'insertCommand'],
nclick="copycode($('code2'));">復制代碼
- 然后繼續往下讀取至:
- musicBtn: ['insertmusic', '音樂', buttonUI, InsertCommandController, 'insertCommand'],
- 在這段代碼下面添加一行代碼:
- downsBtn: ['insertdowns', '下載', buttonUI, InsertCommandController, 'insertCommand'],
不知道是否能用批處理讀取指定文本并按要求增減或替換字符?nclick="copycode($('code3'));">復制代碼
- 然后繼續往下讀取至:
- pwcodeIcon: ['pwcode', '自定義代碼', iconUI, PluginCommandController, 'insertCommand'],
- 將這段代碼替換成:
- downsBtn: ['insertdowns', '下載', buttonUI, InsertCommandController, 'insertCommand'],

