Javascript inside LD JSON

前端 未结 1 680
无人共我
无人共我 2021-01-02 11:02

I\'m wondering if it\'s possible to execute some javascript inside an ld+json script. For example \"window.location.hostname\"



        
1条回答
  •  情话喂你
    2021-01-02 11:28

    No, scripts of the type "application/ld+json" won't be executed. But, you could do something like this:

    
    

    0 讨论(0)
提交回复
热议问题