2012-08-12 2 views
2

에서 MetroStyle App에서 innerHTML을 바인딩 내가 같이 사업부가 정의했습니다.자바 스크립트

지금은 외부 자원 때로는 컨텐츠 속성을 사용하여 만든 개체 것 갖고이 같은 내용 :

"some text <iframe width="560" height="315" src="youtubelink" frameborder="0" allowfullscreen></iframe>" 

이 던져 예외 :

Unable to add dynamic content. A script attempted to inject dynamic content, or elements previously modified dynamically, that might be unsafe. For example, using the innerHTML property to add script or malformed HTML will generate this exception. Use the toStaticHTML method to filter dynamic content, or explicitly create elements and attributes with a method such as createElement. 

내가 예외를 이해하고 왜 그 일이 있지만, 지금이 일을 어떻게해야합니까?

+1

브라우저에서 지원하는 경우 오류 메시지에 나타나는대로하십시오. 그것은'