将原始代码更改为新代码(不影响原始代码功能,但添加代码或替换原始代码中的某些参数 [英] Change original code to new code (without affecting the original code function but with add on codes or replacing certain parameter from the original

查看:83
本文介绍了将原始代码更改为新代码(不影响原始代码功能,但添加代码或替换原始代码中的某些参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

原始源代码:

Original source code:

<form action="demo.asp" method="get" target="_blank">
First name: <input type="text" name="fname"><br>Last name: <input type="text" name="lname"><br><input type="submit" value="Submit">
</form>





新的源代码:



New source code:

<form action="demo.asp" method="get" target="_blank">
  <input type="hidden" name="csrfPreventionSalt" value="<c:out value="${csrfPreventionSalt}" xmlns:c="#unknown" />"/>
  First name: <input type="text" name="fname">
  Last name: <input type="text" name="lname">
  <input type="submit" value="Submit">
</form>



基于以上示例是从原始源代码更改为新源代码的任何方法吗?新的将添加额外的代码,如


based on example above is the any way to change from the Original source code in to the new source code? the new one will add extra code like

<input type="hidden" name="csrfPreventionSalt" value="<c:out value="${csrfPreventionSalt}" xmlns:c="#unknown" />"/>



或更换单词'get'到'post'而不影响编码的其他部分



在原始完成的代码中添加几行额外代码时它叫什么?


or replace the word 'get' to 'post' without affecting other part of the coding

What is it called when adding few line of extra code in to original completed code?

推荐答案

{csrfPreventionSalt} xmlns:c = #unknown / > />
名字:< 输入 type = text < span class =code-attribute> name = fname >
姓氏:< < span class =code-leadattribute> input type = text name = lname >
< input type = submit value = < span class =code-keyword>提交 >
< / form >
{csrfPreventionSalt}" xmlns:c="#unknown" />"/> First name: <input type="text" name="fname"> Last name: <input type="text" name="lname"> <input type="submit" value="Submit"> </form>



基于以上示例是从原始源代码更改为新源代码的任何方法吗?新的将添加额外的代码,如


based on example above is the any way to change from the Original source code in to the new source code? the new one will add extra code like

<input type="hidden" name="csrfPreventionSalt" value="<c:out value="


{csrfPreventionSalt} xmlns:c = #unknown / > />
{csrfPreventionSalt}" xmlns:c="#unknown" />"/>



或将'get'替换为'post'而不影响编码的其他部分



添加时称为什么几行额外的代码到原始完成的代码?


or replace the word 'get' to 'post' without affecting other part of the coding

What is it called when adding few line of extra code in to original completed code?


如果您不介意,请查看以下链接的帖子

http://stackoverflow.com/questions/16807052/how-to -add-modify-code-to-existing-source-code-programmingically [ ^ ]
If you don't mind would you please check on the post of the following link
http://stackoverflow.com/questions/16807052/how-to-add-modify-code-to-existing-source-code-programmatically[^]


这篇关于将原始代码更改为新代码(不影响原始代码功能,但添加代码或替换原始代码中的某些参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆