<!DOCTYPE html>
<html ng-app="myApp">
<head></head>
<head>
</head>
<!-- ControllerAs syntax -->
<!-- Main controller with serveral data used on diferent view -->
<body ng-controller="MainCtrl as main" class="{{$state.current
我正在尝试编写一个JavaScript函数,该函数创建一个也具有运行JavaScript代码的新页面。然而,当我这样做的时候,它似乎并没有真正识别出代码。我的代码在下面
<script>
function openPrint(){
var w = window.open();
var html = '<html><head> \<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"\>\<\/sc