문제

I want to use a function in javascript that has many parameters that likely have long names. I want it to look something like this:

functionName( parameter1,
              parameter2,
              parameter3 );

so far I've tried doing the following to no avail:

functionName( parameter1, \
              parameter2, \
              parameter3 );

I understand that "\" is supposed to have things continue on to the next line. Am I missing something?

도움이 되었습니까?

해결책

You do not need any special character to span lines. Your original is fine:

functionName(parameter1,
             parameter2,
             parameter3) {}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top