You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
global.domino = null global.window = null global.document = null global.location = null global.Vue = null global.VueRouter = null global.axios = null navigator = null
require("./dist/index")
var html = "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <title>Title</title>\n</head>\n<body>\n<div id=\"classifyer\">\n code : {{code}}\n <li v-for=\"todo in data\">\n classifyer_id :{{ todo.classifyer_id }}\n name :{{ todo.name }}\n </li>\n</div>\n</body>\n</html>"
window = domino.createWindow(html, "http://127.0.0.1/#/detail/?id=123"); document = window.document; location = window.location;
var vue = new Vue({ el: "#classifyer", data: function(){ return { code: 212123213123, data: [ { name: "1asdasdasd23" } ] } } });
console.log(document.innerHTML); Vue.axios.get('/user', { params: { ID: 12345 } }) .then(function (response) { console.log(response); }) .catch(function (error) { console.log(error); }) .then(function () { // always executed
});
|