通过ajax将部分视图调用到div并包含js和css文件

时间:2016-11-26 07:57:53

标签: jquery ajax asp.net-mvc

嗨我想通过ajax(无刷新页面)在我的主要布局中调用部分视图潜水

我的代码是

/** Set the media url to media player, and also pass protocol header to it.
 *
 * This method is provide for some online media stream, the parameter *header* is usefull for
 * media player on open and prepare the media stream, but it is not necessary. optionally, You
 * can use setOptionsWithKeys:withValues: method to do that.
 *
 * @param mediaURL The url of media want to play.
 * @param header The protocol header, e.g. HTTP header.
 * @see setDataSource:
 * @see setOptionsWithKeys:withValues:
 * @see prepareAsync
 */
- (void)setDataSource:(NSURL *)mediaURL header:(NSString *)header;

页面正确加载到容器div中,但它没有采用布局中调用的包含的js和css文件

例如,我在这个局部视图中有一个数据表 当它通过ajax加载时,它将不会显示

感谢您的帮助

0 个答案:

没有答案