做网站开发数据库怎么写,网站域名后缀区别,软件外包公司账务处理,财政局网站开发合同做一个网站#xff0c;再页面读取一段文字后#xff0c;点击按钮#xff0c;用ajax将文字传回后台#xff0c;现在我希望ajax返回成功后#xff0c;执行另外一段后台方法#xff0c;请问有什么好方法吗#xff1f;[WebMethod]public static string GetStr(string s){lin…做一个网站再页面读取一段文字后点击按钮用ajax将文字传回后台现在我希望ajax返回成功后执行另外一段后台方法请问有什么好方法吗[WebMethod]public static string GetStr(string s){linkWord s;return linkWord;}private void BtCompare(){//在页面选中一段句子在某个地方弹出一个按钮点击按钮将选中的句子传入到下面的s当中然后调用方法将两个东西传入到o.txt和s.txt然后比较接着切割句子最后输出//string s As a linguist, he acknowledges that all varieties of human language, including non-standard ones like Black English, can be powerfully expressive--there exists no language or dialect in the world that cannot convey complex ideas.;//在前台选中语句传入到这里demo gg new demo();string[] sentence gg.SentenceDetect(linkWord);string otxt gg.Parse(sentence);//放在o.txtFileStream fotxt new FileStream(D:\\parser\\o.txt, FileMode.Create);StreamWriter ot new StreamWriter(fotxt);ot.Write(otxt);ot.Flush(); //清除缓存ot.Close();ot.Dispose();fotxt.Close();DoParser doq new DoParser();string stxt doq.parser(linkWord);//放在s.txtFileStream fstxt new FileStream(D:\\parser\\s.txt, FileMode.Create);StreamWriter st new StreamWriter(fstxt);st.Write(stxt);st.Flush();st.Close();st.Dispose();fstxt.Close();Process p new Process();p.StartInfo.FileName cmd.exe;p.StartInfo.UseShellExecute false;p.StartInfo.RedirectStandardInput true;p.StartInfo.RedirectStandardOutput true;p.StartInfo.RedirectStandardError true;p.StartInfo.CreateNoWindow true;p.Start();string str D:\\BCompare\\BCompare.exe D:\\parser\\BCconsle.txt D:\\parser\\o.txt D:\\parser\\s.txt D:\\学习档案\\Reading\\Reading\\report.html ;//保存到当前目录下p.StandardInput.WriteLine(str);p.StandardInput.WriteLine();p.StandardInput.AutoFlush true;p.StandardInput.WriteLine(exit);p.StandardOutput.ReadToEnd();p.Close();Report.Text ;Utils uu new Utils();//String[] ss uu.subSentenceASC(s);//先长后短句String[] ss uu.subSentenceDESC(stxt);//先短后长句int count 0;foreach (string aa in ss){Report.Text count 、 aa ;}}