문제

I've a script referenced in List's view like :

<JSLink>~/retrieveAlarm.js</JSLink>

The first lines of the script show up an syntax error:

$(document).ready(function() {
    ExecuteOrDelayUntilScriptLoaded(getAlarms, "sp.js");
)};

enter image description here

What I've made wrong ?

Thanks.

도움이 되었습니까?

해결책

It seems that you have to add jQuery reference also into the JSLINK.

Your path should be like

<JSLink>Path_To_jQuery|~/retrieveAlarm.js</JSLink>

Other than this, the syntax seems to be fine.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top