Nodejs and ajax Implement jsonp Cross-Domain Problem

  node.js, question

Front-end ajax Request Code: testJsonp.html

$(function(){
 $.ajax({
 dataType: 'jsonp',
 url: 'localhost:8088',
 type:'get',
 success: function(data){
 $('#name').text(data.name);
 bracket
 });
 })

Nodejs server code: jsonp.js

var http = require('http');
 var urlLib = require('url');
 var data = {name:'luo',year:18};
 http.createServer(function(req,res){
 var parms = urlLib.parse(req.url,true);
 Var str = parms.query.callback plus' ('plus JSON.stringify(data) plus')';
 res.end(str);
 }).listen(8088);

Then I opened the testJsonp.html and found the report wrong.图片描述

Excuse me, is there anything wrong with my code, thank you

net::ERR_UNKNOWN_URL_SCHEME
ThehttpScheme belt

$.ajax({
 dataType: 'jsonp',
 url: 'http://localhost:8088',
 type:'get',
 success: function(data){
 $('#name').text(data.name);
 bracket
 });