在c#中查找字符串中的字符串 [英] Find a string within a string in c#
本文介绍了在c#中查找字符串中的字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
i有字符串:
Hi,
i have a s string :
"
$(document).ready(function(){
$("#btn1").submit(function(e1){
if(e1.keyCode==13){
e1.preventDefault();
}
});
});
i希望找到具体内容:
"
i want to find a specific content :
"
$("#btn1").submit(function(e1){
if(e1.keyCode==13){
e1.preventDefault();
}
})
任何建议。
请帮忙!
"
Any suggestion.
please help!
推荐答案
(document).ready(function(){
(document).ready(function(){
(< span class =code-string> #btn1)。submit(function(e1){
if (e1.keyCode == 13 ){
e1.preventDefault();
}
});
});
("#btn1").submit(function(e1){ if(e1.keyCode==13){ e1.preventDefault(); } }); });
i希望找到具体内容:
"
i want to find a specific content :
"
(& quot; #btn1& quot;)。submit(function(e1){
if (e1.keyCode == 13 ){
e1.preventDefault();
}
})
("#btn1").submit(function(e1){ if(e1.keyCode==13){ e1.preventDefault(); } })
任何建议。
请帮忙!
"
Any suggestion.
please help!
这篇关于在c#中查找字符串中的字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文