小编bvp*_*vpb的帖子

Knockout TypeError:m.apply不是函数

下面是包含折叠面板的表的代码.该click事件处理函数抛出的错误消息"m.apply不是一个函数".

Quux.CollapseExpandCustom.ToggleSection('+id+') 是接受动态id的函数.

请让我知道我犯的错误.我需要绑定click代码中提到的事件.

<table id="EditFooList">
    <thead>
        <tr>
            <th>User</th>
            <th>Started Date</th>
            <th>Foo</th>
            <th>Action</th>
        </tr>
    </thead>
    <tbody data-bind="foreach: EditedDataArray">
        <tr>
            <td data-bind="text: $data.UserName"></td>
            <td data-bind="text: $data.TimeStampString"></td>
            <td>
                <div>
                    <p data-bind="text: $data.Title, click: $root+'.'+'Quux.CollapseExpandCustom.ToggleSection('+$data.Baz+')'">Foos<img src="~/Images/Collapse.png" /></p>
                    <div>
                        <div data-bind="attr:{id: $data.Baz}">
                            <ul data-bind="foreach: $data.FooDetailViewModels">
                                <li>
                                    <input type="button" data-bind="value: 'Resume -   ' + $data.TimeDate,click: $root.ClickResume , attr:{fooStudyId:$data.FooStudyId}" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <input type="button" data-bind="value: 'Plan -   ' +$data.TimeDate, click: $root.ClickPlan , attr:{fooStudyId:$data.FooStudyId}" />
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </td>
            <td>
                <input type="button"value="New" data-bind="attr:{id: …
Run Code Online (Sandbox Code Playgroud)

javascript jquery knockout.js

6
推荐指数
1
解决办法
6150
查看次数

iOS WebApp未显示启动图像

我补充道

<link rel="apple-touch-icon" href="favicon.png" />
<link rel="apple-touch-startup-image" href="splash-screen.png"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black">
Run Code Online (Sandbox Code Playgroud)

在我的网站的头标记之间,但它不适用于启动图像这是正常的吗?

safari html5 ios iphone-standalone-web-app

5
推荐指数
1
解决办法
2871
查看次数