require加载报错,找不到js文件 财富值84

2016-11-02 23:44发布

main.js文件

require.config({     "path":{         "jquery": "/lib/jquery.min.js",         "qrcode": "/lib/qrcode.min.js"     },     "shim": {         "qrcode": ["jquery.min"]     } })  require(["jquery","qrcode"],function($,qrcode){     var init = {         fn: function(){             this.createQrcode();         },          createQrcode: function(){             var _this = this;             var oUrl = "g.php";             var oCode = $("#code");             $.ajax({              })         }     } })

index.html里面引入的

<head>     <meta charset="UTF-8">     <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=1.0,minimum-scale=1.0,maximum-scale=1.0">     <title>我的邀请</title>     <link rel="stylesheet" href="css/normalize.css">     <link rel="stylesheet" href="css/style.min.css">    <script src="js/require.min" data-main="js/main"></script> </head>

目录结构

报错信息