关于js c#换行问题

huisen_ssq 2012-05-30 09:35:14
请问一下,在js,c#中,一条语句太长了,怎么换行啊

例如:js中:function check(txtPName,txtPTime,txtPRPeople,txtPPeople,txtPTelphone,txtPOutTime,ddlISCity,txtPZipCode,txtPPhone,txtPAddress,txtPCode,txtPInvestorsO,txtPInvestorsOCode,txtPInvestorsL,ddlPInvestorsNatrue,ddlPIndustryType,txtRangeAndProduct,ddlPIndustryCategory,ddlPProductCategory,txtBCRegistrationNum,txtBCRegistrationTime,txtTaxRegistrationNum,txtTaxRegistrationTime,txtApprovalNum,txtApprovalTime,txtApprovalYear,txtPIfunds,txtPIfundsO,txtPIfundsOld,txtPIfundsNow,txtItsfunds,txtPGetYear,txtPStartTime,ddlDeveloping,txtPProductTime,txtDeclarationNum,txtPeopleNum,txtPIntroduction,ddlPType,ddlPHeadquarters)


c#中:this.Button1.Attributes.Add("OnClick", "return check(txtPName,txtPTime,txtPRPeople,txtPPeople,txtPTelphone,txtPOutTime,ddlISCity,txtPZipCode,txtPPhone,txtPAddress,txtPCode,txtPInvestorsO,txtPInvestorsOCode,txtPInvestorsL,ddlPInvestorsNatrue,ddlPIndustryType,txtRangeAndProduct,ddlPIndustryCategory,ddlPProductCategory,txtBCRegistrationNum,txtBCRegistrationTime,txtTaxRegistrationNum,txtTaxRegistrationTime,txtApprovalNum,txtApprovalTime,txtApprovalYear,txtPIfunds,txtPIfundsO,txtPIfundsOld,txtPIfundsNow,txtItsfunds,txtPGetYear,txtPStartTime,ddlDeveloping,txtPProductTime,txtDeclarationNum,txtPeopleNum,txtPIntroduction,ddlPType,ddlPHeadquarters);");//在页面初次加载时给按钮加上这个事件
...全文
94 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
huisen_ssq 2012-05-30
  • 打赏
  • 举报
回复
谢楼上

等待js换行,结贴
__天涯寻梦 2012-05-30
  • 打赏
  • 举报
回复
C# 里就这样:
this.Button1.Attributes.Add("OnClick", "return check(txtPName,txtPTime,txtPRPeople,"
+ "txtPPeople,txtPTelphone,txtPOutTime,ddlISCity,txtPZipCode,txtPPhone,txtPAddress,"
+ .....

111,126

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Creator Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧