0
這2個函數調用之間的參數處理有什麼區別?冰壺花括號中的Javascript函數參數
<img src="/static/loading.gif" onload="startTimer('<timer_value>');" />
和
<img src="/static/loading.gif" onload="startTimer('{{ timer }}');" />
這2個函數調用之間的參數處理有什麼區別?冰壺花括號中的Javascript函數參數
<img src="/static/loading.gif" onload="startTimer('<timer_value>');" />
和
<img src="/static/loading.gif" onload="startTimer('{{ timer }}');" />
或者:
我真的沒有看到區別 - 在這兩種情況下,字符串都作爲參數傳遞 - 參數將作爲字符串「處理」。 – Lix 2015-03-31 11:21:04