我正在尝试在Head中插入一个新的元标记,我正在使用内容管理系统,该系统不允许在头部内进行编辑,因此我尝试使用jQuery执行此操作.不幸的是我无法工作.
这是我添加到以下网页的代码:http://www.newcastlegateshead.com
<script type="text/javascript">
$("head").append("<meta name=viewport content=width=400, initial-scale=0.45, minimum- scale=0.45/><link rel=apple-touch-icon href=/images/customIcon.png/><meta name=apple-mobile-web-app-capable content=no /><meta name=apple-mobile-web-app-status-bar-style content=black-translucent /><link rel=apple-touch-icon-precomposed href=/images/customIcon.png/> ");
</script>
Run Code Online (Sandbox Code Playgroud) jquery ×1