$().mouseMove <— Empty selector in jQuery 1.4
-
23-09-2019 - |
문제
The following bit of code breaks in the upgrade to jquery 1.4:
$().mousemove(
function (e) {
defaults.mouseX = e.pageX;
defaults.mouseY = e.pageY;
});
};
What appeared to be a reasonable fix was adding "html" as the selector, ex: $("html").
The fix works fine - except now when the user mouses off the page, it doesn't register the mouse position beyond the boundaries. When attempting to use the mouse position for a drag, for example, the amount of movement beyond the screen is really important. Anyone got any ideas?
Thanks in advance.
해결책
"replacewithbutton"의 정의 된 값으로 계산 된 열을 만들고 jQuery를 사용하여 모든 인스턴스를 찾아서 바꿉니다.
또한 텍스트 기반이며 웹 파트 설정의 기타 섹션에서 XSL 링크 필드를 사용하여 텍스트 기반 XSLT 로이 작업을 수행 할 수 있습니다.
SP2013을 사용하는 경우 설정의 JS 링크 필드에 웹 파트에 적용 할 수있는 JavaScript에서 자신의 디자인 템플릿을 만들 수도 있습니다.
제휴하지 않습니다 StackOverflow