1
gwt에서 런타임시 html의 메타 속성을 변경하는 솔루션이 있습니까?gwt가 facebook 공유에 대한 메타 속성을 수정합니다.
나는 메타 속성을 변경하려고 :
JQuery.select("meta[property='og\\:url']").attr("content", builder.buildString());
JQuery.select("meta[property='og\\:title']").attr("content", Window.getTitle());
JQuery.select("meta[property='og\\:video']").attr("content", videoURL);
JQuery.select("meta[property='og\\:image']").attr("content", pictureURL);
을 나는 검사 할 때 :
Window.alert(" url: " +JQuery.select(("meta[property='og\\:url']")).attr("content") + " title: "+ JQuery.select(("meta[property='og\\:title']")).attr("content") + " video: " + JQuery.select(("meta[property='og\\:video']")).attr("content") + " image: " + JQuery.select(("meta[property='og\\:image']")).attr("content") );
팝업 올바른 새로운 메타 properies을 보여 주지만, 내가 공유 할 때, 페이스 북의 이전을 사용 메타 값.
thx, 잘 작동합니다! – user3341363