javascript - 500 Error:expected "indent", but got "newline" -


ration_enum={' ':' ','定性':'定性','定量':'定量'} val, key in ration_enum if modi_type=='edit'&&key==common_index.ration option(value='#{key}', selected) #{val} else option(value='#{key}') #{val} 

expected "indent", got "newline"

guessing jade template...

jade follows python rule whitespace matters, have indent code properly:

ration_enum={' ':' ','定性':'定性','定量':'定量'} val, key in ration_enum     if medi_type == 'edit' && key == common_index.ration         option(value='#{key}', selected) #{val}     else         option(value='#{key}') #{val} 

jade has flexible indentation in can choose whether use tabs or spaces, how many spaces. but, have consistent in choice throughout template.


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -