在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
有个按钮 调用 <a href="#" onclick="$.ajax({url: '/redmine/journals/edit/29606.js', type: 'get'}); return false;" title="编辑"><img alt="Edit" src="/redmine/images/edit.png?1409696303" /></a> redmine/journals/edit/29606.js $("#journal-29606-notes").hide(); if ($("form#journal-29606-form").length > 0) { // journal edit form already loaded $("#journal-29606-form").show(); } else { $("#journal-29606-notes").after('<form accept-charset=\"UTF-8\" action=\"/redmine/journals/edit/29606\" data-remote=\"true\" id=\"journal-29606-form\" method=\"post\"><div style=\"margin:0;padding:0;display:inline\"><input name=\"utf8\" type=\"hidden\" value=\"✓\" /><input name=\"authenticity_token\" type=\"hidden\" value=\"sydzG/YXRpUdgxZ6pyaAyq4gdxRHyScjXTE5BDKOK6w=\" /><\/div>\n <label class=\"hidden-for-sighted\" for=\"notes\">批注<\/label>\n <textarea class=\"wiki-edit\" id=\"journal_29606_notes\" name=\"notes\" rows=\"16\">\n43501 {"STATE":200,"DESC":"执行成功","LIST":[{"OPERATORNAME":"运营商名","BREAKINGLINETIME":10.56,"BREAKINGTIMES":1,"BREAKINGLINERATE":1.5},{"OPERATORNAME":"ADCAP","BREAKINGLINETIME":1.0445,"BREAKINGTIMES":123,"BREAKINGLINERATE":0.55}],"COUNT":2}43502 {"STATE":200,"DESC":"执行成功","LIST":[{"OPERATORNAME":"WSDF","BREAKINGLINESTARTIME":"2015-08-28 00:00:00","BREAKINGLINEENDTIME":"2015-08-28 00:00:00","BREAKINGLINETIME":10.22},{"OPERATORNAME":"ASF是否","BREAKINGLINESTARTIME":"2015-08-27 10:26:52","BREAKINGLINEENDTIME":"2015-08-28 10:26:57","BREAKINGLINETIME":10.4}],"COUNT":2}43503 {"STATE":200,"DESC":"执行成功","LIST":[{"STRATIVEID":123,"OPERATORNAME":"123"},{"STRATIVEID":123,"OPERATORNAME":"123"},{"STRATIVEID":123,"OPERATORNAME":"123"},{"STRATIVEID":123,"OPERATORNAME":"123"},{"STRATIVEID":123,"OPERATORNAME":"123"}],"COUNT":72}\n<\/textarea>\n \n <p><input name=\"commit\" type=\"submit\" value=\"保存\" />\n <a accesskey=\"r\" href=\"#\" onclick=\"submitPreview("/redmine/issues/preview/edit/4635?project_id=industry", "journal-29606-form", "journal_29606_preview"); return false;\">预览<\/a> |\n <a href=\"#\" onclick=\"$('#journal-29606-form').remove(); $('#journal-29606-notes').show(); return false;\">取消<\/a><\/p>\n\n <div id=\"journal_29606_preview\" class=\"wiki\"><\/div>\n<\/form><script type=\"text/javascript\">\n//<![CDATA[\nvar wikiToolbar = new jsToolBar(document.getElementById(\'journal_29606_notes\')); wikiToolbar.setHelpLink(\'/redmine/help/zh/wiki_syntax.html\'); wikiToolbar.draw();\n//]]>\n<\/script>\n');
暂时没法找到方法: http://www.itnose.net/detail/456763.html 你属性设置错误:textarea不是设置InnerText,而是设置HtmlElement实例.SetAttribute("value","你的文本") 不行 估计是别的编程语言
2、也不行,提示说 接口没有实现 procedure TForm1.Button2Click(Sender: TObject); begin 以下为可以操作的: 1、mmo1.Lines.Add(wb1.OleObject.Document.getElementByID('issue_description').innerText); //journal-29606-notes <textarea class="wiki-edit" cols="60" id="issue_description" name="issue[description]" rows="10"> 要获取的内容</textarea> <div class="wiki editable" id="journal-29606-notes"><div class="contextual"><a href="/redmine/issues/4635/quoted?journal_id=29606" data-method="post" data-remote="true" rel="nofollow" title="引用"><img alt="Comment" src="/redmine/images/comment.png?1409696303" /></a> <a href="#" onclick="$.ajax({url: '/redmine/journals/edit/29606.js', type: 'get'}); return false;" title="编辑"><img alt="Edit" src="/redmine/images/edit.png?1409696303" /></a></div><p>通过修改ID也可以获取这里面的内容</p></div>
2、http://www.cnblogs.com/jxsoft/archive/2011/07/18/2109127.html 解决了本人 修改编辑框里面的内容; 给HtmlElement设置Value属性procedure SetValueTextAreaName(web: TWebBrowser; elementName, value: string;index: integer);
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论