在使用来自NPM Msg91包,我得到误差str.charCodeAt是不是isUnicodeString得到错误的str.charCodeAt不是一个函数
的功能,这是mycode的
module.exports = function(router, msg91){
router.get('/try', function(req, res){
res.render('secured/try', {user : req.user});
});
router.post('/try', function(req, res){
var message = 'Hapserve testing message from Developer';
var mobileNo = parseInt(req.body.phone_no);
console.log(mobileNo);
msg91.send(mobileNo, message, function(err, response){
if(err)
throw err;
console.log(response);
});
});
};
帮我理清这个问题..
试图调试该库?看看它为什么会失败,它期望的是什么。如果您很难理解哪里出现故障,请向我们展示它失败的功能以及它获取的输入参数。 – AlexD