Injecting JavaScript into head element of website using Fiddler

前端 未结 3 2053
死守一世寂寞
死守一世寂寞 2020-12-04 22:05

I was thinking of using Fiddler for the following purpose...

I have a JavaScript based service I want to demonstrate to potential clients. In order to show them wha

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-04 22:36

    if you use jQuery you can add js on the fly. I would probably think you can have a method which would include/exclude your script based on some query param. This is how you would include JS with jQuery

    $.getScript('someScript.js',function(){
    //Do something here after your script loads
    });
    

提交回复
热议问题