What are alternatives to [removed]?

后端 未结 10 2148
北荒
北荒 2020-11-22 05:11

In tutorials I\'ve learnt to use document.write. Now I understand that by many this is frowned upon. I\'ve tried print(), but then it literally sen

10条回答
  •  滥情空心
    2020-11-22 05:38

    I'm not sure if this will work exactly, but I thought of

    var docwrite = function(doc) {               
        document.write(doc);          
    };
    

    This solved the problem with the error messages for me.

提交回复
热议问题