Javascript 您如何看待函数';使用Visual Studio代码';什么是智能感知?
我正在Mac上用Visual Studio代码编写Javascript 我有这个函数,以JSDoc格式记录:Javascript 您如何看待函数';使用Visual Studio代码';什么是智能感知?,javascript,visual-studio-code,jsdoc,Javascript,Visual Studio Code,Jsdoc,我正在Mac上用Visual Studio代码编写Javascript 我有这个函数,以JSDoc格式记录: /** * Adds the passed Matter Body to the simulation. * @param {Matter.Body} body - The body to add to the physics simulation * @param {string} imageUrl - The URL of the image to use to repres
/**
* Adds the passed Matter Body to the simulation.
* @param {Matter.Body} body - The body to add to the physics simulation
* @param {string} imageUrl - The URL of the image to use to represent this body in the simulation. It should match an image URL that has already been added via loadImages()
* @param {function} [onCollide] - Optional function to call when this body collides
*/
addObject(body, imageUrl, onCollide) {
但是,当Intellisense工具提示弹出时,显示如下:
这一切都乱七八糟,没有显示完整的文档。是否需要按下某种组合键才能在工具提示中显示完整的功能文档?事实上,它从来没有这样做过,但这是为了: 由于您还没有定义参数,所以可以阅读关于第一个参数的文档 如果您已经编写/定义了第一个参数和一个逗号,那么您可以阅读关于第二个参数的文档 这与c#方法的行为类似
试一试…事实上,它从来没有这样做过,但它的目的是: 由于您还没有定义参数,所以可以阅读关于第一个参数的文档 如果您已经编写/定义了第一个参数和一个逗号,那么您可以阅读关于第二个参数的文档 这与c#方法的行为类似
试一试…Alt+F12可以查看对象定义。。。这就是你的意思吗?Alt+F12可以查看对象定义。。。这就是你的意思吗?