在我使用JQuery之前,我使用它来发送带参数的URL
window.location = myUrl + $.param({"paramName" : "ok","anotherParam":"hello"});
Run Code Online (Sandbox Code Playgroud)
但是对于angularjS,这不起作用
$scope.myButton = function() {
$window.location.open = myUrl + $.param({"paramName" : "ok","anotherParam":"hello"});
};//Error: $ is not defined
Run Code Online (Sandbox Code Playgroud)
任何人都可以帮我在angularJs中做到这一点